/* ==========================================================
   THELAB v8 — the upgrade layer
   Loaded last. Reuses the site's own tokens (style.css :root)
   so everything added here sits inside the look the owner
   already likes; nothing below changes the palette.
========================================================== */

:root {
    --lab8-ink: var(--dark);
    --lab8-line: rgba(15, 107, 79, .20);
    --lab8-wash: #EEF2E6;
    --lab8-sheet-radius: 26px;
    --lab8-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 768px) {
    /* a slimmer bar leaves more of a phone screen for the menu */
    :root { --header-height: 74px; }
}

html.lab8-locked { overflow: hidden; }
.lab8-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* ----------------------------------------------------------
   Brand detail: the glassware line from the brand guidelines
---------------------------------------------------------- */
.lab8-divider {
    height: 30px;
    background: url("../images/brand/lab-pattern-tile.svg") repeat-x center / auto 100%;
    opacity: .5;
}
footer[data-site-component="footer"]::before {
    content: "";
    display: block;
    height: 34px;
    background: var(--background) url("../images/brand/lab-pattern-tile.svg") repeat-x center / auto 26px;
    border-bottom: 1px solid var(--lab8-line);
}

/* ----------------------------------------------------------
   The mark: our green flask, bubbling. Header and footer.
---------------------------------------------------------- */
.lab8-mark { display: block; flex: 0 0 auto; width: 54px; height: 54px; color: var(--primary); overflow: visible; }
.lab8-mark__bubbles circle { transform-box: fill-box; animation: lab8-bubble 4s ease-in-out infinite; }
.lab8-mark__bubbles circle:nth-child(2) { animation-delay: .8s; }
.lab8-mark__bubbles circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes lab8-bubble { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-7px); opacity: 1; } }

.lab8-logo { gap: 10px; color: var(--primary); text-decoration: none; }
.lab8-logo .lab8-mark { transition: transform .7s var(--lab8-ease); }
.lab8-logo:hover .lab8-mark { transform: rotate(360deg); }
.lab8-wordmark { color: var(--dark); font: 600 1.85rem/1 "Abhaya Libre", Georgia, serif; letter-spacing: -.01em; white-space: nowrap; }
.lab8-wordmark b { color: var(--primary); font-weight: inherit; }
.lab8-wordmark small { display: block; margin-top: 7px; color: var(--text-light); font: 600 .62rem/1 "Inter", "Inter Fallback", sans-serif; letter-spacing: .34em; text-transform: uppercase; text-indent: .34em; }

.lab8-footer-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 18px; text-align: center; }
.lab8-footer-logo .lab8-mark { width: 104px; height: 104px; }
.lab8-footer-logo .lab8-wordmark { font-size: 2.4rem; }

/* ----------------------------------------------------------
   Buttons shared by the new pieces
---------------------------------------------------------- */
.lab8-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 13px 26px;
    border: 1.5px solid var(--primary); border-radius: var(--radius-pill);
    background: var(--primary); color: #fff;
    font: 600 1rem/1.2 "Inter", "Inter Fallback", sans-serif; text-decoration: none; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s var(--lab8-ease), opacity .2s;
}
.lab8-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.lab8-btn:active { transform: scale(.98); }
.lab8-btn:focus-visible, .lab8-add:focus-visible, .lab8-tile:focus-visible, .lab8-day:focus-visible, .lab8-slot:focus-visible,
.lab8-chip:focus-visible, .lab8-tray:focus-visible, .lab8-sheet__close:focus-visible, .lab8-link:focus-visible {
    outline: 3px solid rgba(15, 107, 79, .35); outline-offset: 2px;
}
.lab8-btn[disabled] { opacity: .45; cursor: not-allowed; }
.lab8-btn--ghost { background: transparent; color: var(--primary-dark); }
.lab8-btn--ghost:hover { background: var(--lab8-wash); color: var(--primary-dark); border-color: var(--primary); }
.lab8-btn--text { background: transparent; border-color: transparent; color: var(--text); padding-inline: 12px; }
.lab8-btn--text:hover { background: transparent; border-color: transparent; color: var(--dark); text-decoration: underline; }
.lab8-btn--small { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.lab8-btn--wa::before {
    content: ""; width: 20px; height: 20px; flex: 0 0 auto; background: currentColor;
    -webkit-mask: url("../images/brand/whatsapp.svg") center / contain no-repeat; mask: url("../images/brand/whatsapp.svg") center / contain no-repeat;
}
.lab8-btn.is-waiting { opacity: .55; }
.lab8-link { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lab8-eyebrow {
    margin: 0; color: var(--primary); font: 600 .74rem/1.4 "Inter", "Inter Fallback", sans-serif; letter-spacing: .2em; text-transform: uppercase;
}
.lab8-fineprint { margin: 0; color: var(--text-light); font-size: .8rem; line-height: 1.5; }
.lab8-hint { margin: 0 0 14px; color: var(--text-light); font-size: .88rem; }

/* ----------------------------------------------------------
   Sheets (reserve · takeout · options): a centred card on
   desktop, a bottom sheet on a phone
---------------------------------------------------------- */
.lab8-sheet {
    --lab8-pad: 26px;
    width: min(560px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 48px));
    margin: auto; padding: 0; border: 0; border-radius: var(--lab8-sheet-radius);
    background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(12, 40, 30, .35);
    overflow: hidden;
}
.lab8-sheet--compact { width: min(440px, calc(100vw - 32px)); }
.lab8-sheet::backdrop { background: rgba(16, 44, 34, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lab8-sheet[open] { display: flex; animation: lab8-rise .32s var(--lab8-ease); }
.lab8-sheet__inner { display: flex; flex-direction: column; width: 100%; min-height: 0; }
/* title, optional action and close share one row, so the close button sits
   inside the header instead of hanging over its rule. The site styles every
   <header> as its fixed top bar (style.css) — undo all of that here. */
.lab8-sheet__head {
    position: relative; top: auto; left: auto; width: auto; z-index: auto;
    background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px;
    padding: 10px 10px 10px var(--lab8-pad); border-bottom: 1px solid var(--lab8-line);
}
.lab8-sheet__head .lab8-eyebrow { flex: 1 1 0; min-width: 0; }
.lab8-sheet__close {
    flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--dark); font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.lab8-sheet__close:hover { background: var(--lab8-wash); }
.lab8-sheet__action {
    flex: 0 0 auto; min-height: 34px; padding: 6px 14px; border: 1px solid var(--lab8-line); border-radius: var(--radius-pill);
    background: transparent; color: var(--primary-dark); font: 600 .82rem/1 "Inter", "Inter Fallback", sans-serif; cursor: pointer;
}
.lab8-sheet__action:hover { background: var(--lab8-wash); border-color: var(--primary); }
.lab8-sheet__action:focus-visible { outline: 3px solid rgba(15, 107, 79, .35); outline-offset: 2px; }
.lab8-sheet__body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 22px var(--lab8-pad) 8px; overscroll-behavior: contain; }
.lab8-sheet__body:focus { outline: none; }
.lab8-sheet__body h2 { margin: 0 0 16px; font-size: 1.75rem; line-height: 1.15; }
.lab8-sheet__body h2:focus { outline: none; }
.lab8-sheet__body h2 small { color: var(--primary-dark); font: 700 1rem "Inter", "Inter Fallback", sans-serif; margin-left: 8px; }
.lab8-sheet__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px;
    padding: 14px var(--lab8-pad) 20px; border-top: 1px solid var(--lab8-line); background: var(--surface);
}
.lab8-sheet__foot .lab8-btn:not(.lab8-btn--text) { margin-left: auto; }
.lab8-sheet__foot .lab8-fineprint { flex: 1 0 100%; }

@keyframes lab8-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
    .lab8-sheet, .lab8-sheet--compact {
        --lab8-pad: 20px;
        width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0;
        border-radius: var(--lab8-sheet-radius) var(--lab8-sheet-radius) 0 0;
    }
    .lab8-sheet[open] { animation-name: lab8-sheet-up; }
    .lab8-sheet__head { padding: 8px 10px 8px var(--lab8-pad); }
    .lab8-sheet__body { padding: 18px var(--lab8-pad) 6px; }
    .lab8-sheet__foot { padding: 12px var(--lab8-pad) calc(16px + env(safe-area-inset-bottom, 0px)); }
    .lab8-sheet__foot .lab8-btn:not(.lab8-btn--text) { flex: 1 1 auto; }
    .lab8-sheet__body h2 { font-size: 1.5rem; }
}
@keyframes lab8-sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* the site pads every <section>; inside a sheet that would be a 70px hole */
.lab8-sheet section { padding: 0; }

/* progress */
.lab8-steps { flex: 1 0 100%; display: flex; gap: 8px; margin: 2px calc(var(--lab8-pad) - 10px) 6px 0; padding: 0; list-style: none; counter-reset: step; }
.lab8-steps li {
    flex: 1; padding-top: 9px; border-top: 3px solid var(--border); color: var(--text-light);
    font-size: .74rem; font-weight: 600; letter-spacing: .04em; transition: border-color .3s, color .3s;
}
.lab8-steps li.is-on, .lab8-steps li.is-done { border-top-color: var(--primary); color: var(--primary-dark); }

/* step 1: guests */
.lab8-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lab8-tile, .lab8-day, .lab8-slot, .lab8-chip {
    border: 1.5px solid var(--border); background: #fff; color: var(--dark); cursor: pointer;
    font-family: "Inter", "Inter Fallback", sans-serif; transition: border-color .15s, background .15s, color .15s, transform .15s var(--lab8-ease);
}
.lab8-tile { aspect-ratio: 1.25; border-radius: 16px; font: 600 1.5rem "Abhaya Libre", serif; }
.lab8-tile--wide { grid-column: span 4; aspect-ratio: auto; padding: 12px; font: 600 1rem "Inter", "Inter Fallback", sans-serif; }
.lab8-tile:hover, .lab8-day:hover, .lab8-slot:hover, .lab8-chip:hover { border-color: var(--primary); }
.lab8-tile.is-on, .lab8-day.is-on, .lab8-slot.is-on, .lab8-chip[aria-pressed="true"], .lab8-chip--radio:has(input:checked) {
    border-color: var(--primary); background: var(--primary); color: #fff;
}
.lab8-more { margin-top: 16px; }

/* step 2: date and time */
.lab8-days { display: flex; gap: 8px; margin: 0 calc(-1 * var(--lab8-pad)) 12px; padding: 2px var(--lab8-pad) 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.lab8-days::-webkit-scrollbar { display: none; }
.lab8-day { flex: 0 0 auto; min-width: 82px; padding: 10px 12px; border-radius: 14px; text-align: center; scroll-snap-align: center; }
.lab8-day strong { display: block; font-size: .95rem; }
.lab8-day span { display: block; font-size: .78rem; opacity: .75; }
.lab8-otherdate { margin-bottom: 12px; }
.lab8-otherdate input {
    position: relative; cursor: pointer; min-height: 52px; padding-right: 48px; -webkit-appearance: none; appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B4F' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 16px center / 20px;
}
/* stretch the browser's own (tiny) calendar trigger over the whole field */
.lab8-otherdate input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.lab8-otherdate input::-webkit-date-and-time-value { text-align: left; }
.lab8-timegroup h3 { margin: 14px 0 8px; font: 600 .74rem "Inter", "Inter Fallback", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--text-light); }
.lab8-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.lab8-slot { padding: 11px 4px; border-radius: 12px; font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* step 3: details */
.lab8-field { display: block; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.lab8-field > span, .lab8-field > legend { display: block; margin-bottom: 7px; padding: 0; color: var(--dark); font-size: .9rem; font-weight: 600; }
.lab8-field em { color: var(--text-light); font-style: normal; font-weight: 400; }
.lab8-field small { display: block; margin-top: 6px; color: var(--text-light); font-size: .82rem; }
.lab8-field input, .lab8-field textarea, .lab8-field select {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 14px;
    background: #fff; color: var(--dark); font: 400 1rem/1.4 "Inter", "Inter Fallback", sans-serif;      /* 16px: no zoom-on-focus on iPhone */
}
.lab8-field input:focus, .lab8-field textarea:focus, .lab8-field select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 107, 79, .14); }
.lab8-field textarea { resize: vertical; min-height: 64px; }
.lab8-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lab8-chip { padding: 9px 16px; border-radius: var(--radius-pill); font-size: .92rem; }
.lab8-chip--radio { position: relative; }
.lab8-chip--radio input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lab8-summary {
    margin: 4px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--lab8-wash); color: var(--dark); font-size: .98rem;
}
.lab8-summary:empty { display: none; }

/* done */
.lab8-done { text-align: center; padding: 10px 0 18px; }
.lab8-done__mark {
    width: 64px; height: 64px; margin: 6px auto 16px; display: grid; place-items: center; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 1.8rem; animation: lab8-pop .5s var(--lab8-ease);
}
.lab8-done p { margin: 0 auto 12px; max-width: 38ch; }
.lab8-done__next { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--lab8-line); }
@keyframes lab8-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ----------------------------------------------------------
   Menu: one page, pinned category chips, whole-menu search
---------------------------------------------------------- */
.menu-page .menu-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: end; margin-bottom: 16px; }
.menu-control-label { display: block; margin: 0 0 6px 4px; font-size: .82rem; font-weight: 600; }
.menu-page .menu-toolbar input, .menu-page .menu-toolbar select { padding: 13px 20px; font-size: 1rem; }

.menu-page .sub-tabs {
    position: sticky; top: var(--header-height); z-index: 20;
    /* full-bleed bar: break out of the container to both screen edges */
    width: 100vw; max-width: 100vw; margin: 0 0 8px calc(50% - 50vw);
    padding: 12px max(4vw, calc(50vw - 560px)); gap: 8px;
    background: color-mix(in srgb, var(--background) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lab8-line);
    scrollbar-width: none;
}
.menu-page .sub-tabs::-webkit-scrollbar { display: none; }
.menu-page .sub-tab {
    padding: 9px 16px; border-radius: var(--radius-pill); font: 500 .92rem "Inter", "Inter Fallback", sans-serif;
    text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.menu-page .sub-tab:hover { border-color: var(--primary); }
.menu-page .main-tabs { margin-bottom: 6px; padding-bottom: 6px; }
.menu-page .main-tabs::-webkit-scrollbar { display: none; }
.menu-page .main-tabs { scrollbar-width: none; }

.menu-sections { display: block; }
/* the page already reserves the header's height when scrolling to an anchor; add only the chip bar */
.menu-section { padding-top: 34px; scroll-margin-top: 40px; }
.menu-section-title {
    display: flex; align-items: baseline; gap: 14px; margin: 0 0 4px; padding-bottom: 10px;
    font-size: 2rem; line-height: 1.1; border-bottom: 2px solid var(--primary);
}
.menu-section-title small { color: var(--text-light); font: 600 .72rem "Inter", "Inter Fallback", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.menu-sections--single .menu-section { padding-top: 6px; }
.menu-sections--single .menu-section-title { display: none; }
.menu-search-count { margin: 18px 0 0; color: var(--text-light); font-size: .95rem; }
.menu-card .price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.menu-card .price-part small { color: var(--text-light); font-weight: 500; font-size: .78em; margin-right: 4px; }
.menu-card .description { margin-bottom: 0; }

/* "+" beside the price — takeout */
.menu-card .lab8-buy { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-top: -5px; }
.lab8-add {
    position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0;
    border: 1.5px solid var(--primary); border-radius: 50%; background: transparent; color: var(--primary-dark);
    font: 500 1.35rem/1 "Inter", "Inter Fallback", sans-serif; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--lab8-ease);
}
.lab8-add:hover { background: var(--lab8-wash); }
.lab8-add.is-added { background: var(--primary); color: #fff; transform: scale(1.12); }
.lab8-add[data-qty]:not([data-qty=""]) { background: var(--primary); color: #fff; }
.lab8-add[data-qty]:not([data-qty=""])::after {
    content: attr(data-qty); position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px; background: var(--dark); color: #fff;
    font: 700 .68rem/1 "Inter", "Inter Fallback", sans-serif; box-shadow: 0 0 0 2px var(--background);
}

.lab8-tray {
    position: fixed; z-index: 900; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; min-height: 54px;
    border: 0; border-radius: var(--radius-pill); background: var(--dark); color: #fff; cursor: pointer;
    font: 600 .98rem "Inter", "Inter Fallback", sans-serif; box-shadow: 0 16px 40px rgba(12, 40, 30, .35);
    animation: lab8-rise .35s var(--lab8-ease);
}
.lab8-tray:hover { background: var(--primary-dark); }
.lab8-tray__sum { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .3); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
    .lab8-tray { left: 16px; right: 80px; transform: none; justify-content: space-between; padding-inline: 18px; }
}

.lab8-lines { list-style: none; margin: 0 0 6px; padding: 0; }
.lab8-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--lab8-line); }
.lab8-line--empty { display: block; color: var(--text-light); text-align: center; padding: 26px 0; }
.lab8-line--empty .lab8-link { margin-left: 4px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; }
.lab8-line__text strong { display: block; color: var(--dark); font: 700 1.15rem/1.2 "Abhaya Libre", serif; }
.lab8-line__text small { display: block; margin-top: 3px; color: var(--text-light); font-size: .82rem; }
.lab8-line__price { min-width: 58px; text-align: right; color: var(--primary-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.lab8-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-pill); background: #fff; }
.lab8-qty button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--dark); font-size: 1.2rem; cursor: pointer; border-radius: 50%; }
.lab8-qty button:hover { background: var(--lab8-wash); }
.lab8-qty span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.lab8-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 18px; font-size: 1rem; color: var(--dark); }
.lab8-total strong { font: 700 1.6rem "Abhaya Libre", serif; }

/* ----------------------------------------------------------
   Lab Notes — stay in touch (in the page; never a pop-up)
---------------------------------------------------------- */
section.lab8-updates { padding: 76px 0 84px; background: linear-gradient(180deg, var(--background), #F3EDDF); border-top: 1px solid var(--lab8-line); }
.lab8-updates__grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 28px; align-items: start; }
.lab8-updates__intro h2 { margin: 12px 0 14px; font-size: 2.3rem; line-height: 1.08; }
.lab8-updates__intro p:not(.lab8-eyebrow) { color: var(--text); max-width: 34ch; }
.lab8-updates__card {
    display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid rgba(184, 138, 74, .18); box-shadow: var(--shadow-sm);
}
.lab8-updates__card h3 { margin: 0; font-size: 1.5rem; }
.lab8-updates__card > p { margin: 0; color: var(--text); font-size: .95rem; }
.lab8-updates__card .lab8-btn { margin-top: 4px; }
.lab8-updates__card .lab8-field { margin: 0; }
.lab8-updates__card .lab8-field > span { font-size: .82rem; }
.lab8-updates__fields { display: grid; gap: 10px; }
.lab8-form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.lab8-form-status:empty { display: none; }
.lab8-form-status[data-kind="ok"] { color: var(--primary-dark); font-weight: 600; }
.lab8-form-status[data-kind="error"] { color: #A2401F; font-weight: 600; }
form.is-done .lab8-updates__fields, form.is-done [type="submit"], form.is-done .lab8-fineprint { display: none; }
@media (max-width: 980px) {
    .lab8-updates__grid { grid-template-columns: 1fr 1fr; }
    .lab8-updates__intro { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    section.lab8-updates { padding: 52px 0 60px; }
    .lab8-updates__grid { grid-template-columns: 1fr; gap: 18px; }
    .lab8-updates__intro h2 { font-size: 1.9rem; }
    .lab8-updates__card { padding: 22px; }
}

.lab8-prompt {
    position: fixed; z-index: 880; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100vw - 32px));
    padding: 18px 20px 20px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(184, 138, 74, .25);
    box-shadow: 0 18px 50px rgba(12, 40, 30, .28); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s var(--lab8-ease);
}
.lab8-prompt.is-in { opacity: 1; transform: none; }
.lab8-prompt__text { margin: 6px 26px 14px 0; color: var(--dark); font: 600 1.25rem/1.25 "Abhaya Libre", serif; }
.lab8-prompt__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lab8-prompt__close { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 1.4rem; color: var(--text-light); cursor: pointer; }
.lab8-prompt__close:hover { background: var(--lab8-wash); color: var(--dark); }
html.lab8-has-tray .lab8-prompt { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) { .lab8-prompt { left: 16px; right: 16px; width: auto; } }

/* ----------------------------------------------------------
   Home: the things that looked unfinished
---------------------------------------------------------- */
#menu .menu-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; }
#menu .menu-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; transition: transform .7s var(--lab8-ease); }
#menu .menu-card:hover > img { transform: scale(1.04); }
#menu .menu-card h3 { margin: 0; padding: 22px 26px 4px; font-size: 1.7rem; }
#menu .menu-card > a {
    display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; margin: 0 26px 20px;
    font-weight: 600; text-decoration: none;
}
#menu .menu-card > a::after { content: "→"; font-size: 1.15em; transition: transform .25s var(--lab8-ease); }
#menu .menu-card:hover > a::after { transform: translateX(5px); }
/* the whole card is the link, not just two words */
#menu .menu-card { position: relative; }
#menu .menu-card > a::before { content: ""; position: absolute; inset: 0; }
#about .about-grid .primary-btn { margin-top: 22px; }
/* The short gold rule under section headings is gone (Edwin, 2026-10-03): it sat
   mid-page under a left-aligned heading and directly on top of the cards below.
   The rule was also the only thing separating heading from content, so the
   heading now carries that space itself. */
.section-title::after, .section-heading h2::after { content: none; }
.section-title { margin-bottom: 34px; }

.lab8-open {
    display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 7px 14px 7px 12px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .14); color: #fff; font-size: .88rem; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lab8-open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #E0A458; }
.lab8-open.is-open::before { background: #57D08D; box-shadow: 0 0 0 4px rgba(87, 208, 141, .25); }
.hero-content .lab8-open { margin-top: 26px; }
footer .lab8-open { background: rgba(255, 255, 255, .1); margin-bottom: 12px; }

/* About: the brand promise, in the restaurant's own words */
section.lab8-promise { padding: 70px 0; text-align: center; }
.lab8-promise .container { width: min(820px, 90%); }
.lab8-promise .lab8-divider { margin-bottom: 30px; }
.lab8-promise blockquote { margin: 14px 0 18px; color: var(--dark); font: 500 clamp(1.5rem, 3.2vw, 2.1rem)/1.3 "Abhaya Libre", serif; }
.lab8-promise p:last-child { color: var(--text); max-width: 62ch; margin-inline: auto; }

/* Contact: four cards in one row instead of three and an orphan */
.lab8-contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.lab8-contact-grid .feature { padding: 34px 24px; overflow-wrap: anywhere; }
.lab8-contact-grid .feature p + p { margin-top: 12px; }
.lab8-open--light { background: var(--lab8-wash); color: var(--dark); margin-bottom: 12px; }
@media (max-width: 1100px) { .lab8-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lab8-contact-grid { grid-template-columns: 1fr; } }

/* end-of-menu actions */
.lab8-menu-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 44px; padding: 26px 28px; border-radius: var(--radius); background: var(--lab8-wash); }
.lab8-menu-next p { margin: 0; color: var(--dark); font: 600 1.45rem/1.2 "Abhaya Libre", serif; }
.lab8-menu-next div { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----------------------------------------------------------
   Footer: ways to reach the restaurant, and the fine print
---------------------------------------------------------- */
.lab8-contact { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.lab8-contact a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .92); text-decoration: none; overflow-wrap: anywhere; }
.lab8-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lab8-social { display: flex; gap: 10px; margin-top: 14px; }
.lab8-social a {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28); color: #fff; transition: background .2s, border-color .2s;
}
.lab8-social a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.lab8-social svg { width: 20px; height: 20px; }
.footer-hours p.is-today, .business-hours-list p.is-today { font-weight: 700; color: #fff; }
.business-hours-list p.is-today { color: var(--primary-dark); }
.footer-bottom .lab8-legal { margin-top: 8px; font-size: .84rem; opacity: .85; }
.footer-bottom .lab8-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* privacy page */
.lab8-prose { width: min(760px, 92%); margin: 0 auto; }
.lab8-prose h2 { margin: 38px 0 12px; font-size: 1.7rem; }
.lab8-prose p, .lab8-prose li { margin: 0 0 12px; }
.lab8-prose ul { padding-left: 22px; }

@media (max-width: 768px) {
    .menu-page .menu-toolbar { grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; margin-bottom: 10px; }
    .menu-page .menu-toolbar input, .menu-page .menu-toolbar select { padding: 12px 16px; }
    .menu-control-label { font-size: .76rem; }
    .menu-page .sub-tabs { padding-block: 10px; }
    .menu-section { padding-top: 26px; }
    .menu-section-title { font-size: 1.65rem; }
    .lab8-menu-next { padding: 22px; }
    .section-title { margin-bottom: 24px; }
    #menu .menu-card h3 { padding: 18px 20px 2px; }
    #menu .menu-card > a { margin: 0 20px 16px; }
    /* v7 stretched Reserve across the whole bar (a site-wide "buttons are 100% wide" rule) */
    header .nav { gap: 10px; }
    header .logo { flex: 0 0 auto; margin-right: auto; }
    header .lab8-mark { width: 46px; height: 46px; }
    header .lab8-wordmark { font-size: 1.55rem; }
    header .reserve-btn { order: 2; flex: 0 0 auto; width: auto; padding: 11px 16px; font-size: .84rem; }
    header .menu-toggle { order: 3; flex: 0 0 auto; }
    /* the pinned category chips are the way around the menu; the floating arrow only hid prices */
    body:has(.menu-page) #backToTop { display: none; }
}

@media (max-width: 359px) {
    header .lab8-wordmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lab8-mark__bubbles circle { animation: none; }
    .lab8-logo:hover .lab8-mark { transform: none; }
    .lab8-sheet[open], .lab8-tray, .lab8-done__mark { animation: none; }
    #menu .menu-card:hover > img { transform: none; }
    .lab8-prompt { transition: none; }
}

/* ---- a short confirmation line (statistics switch) ---- */
.lab8-note { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9000;
    width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 18px; border-radius: 14px;
    background: var(--dark, #173B2E); color: #fff; font: 500 .9rem/1.4 Inter, "Inter Fallback", Arial, sans-serif; text-align: center;
    box-shadow: 0 12px 30px rgba(23, 59, 46, .28); }

/* ---- page not found ---- */
.lab8-lost { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 18px;
    padding: 48px 20px; text-align: center; background: var(--background, #FBF7EF); }
.lab8-lost .lab8-mark { width: 84px; height: 84px; color: var(--primary, #0F6B4F); }
.lab8-lost h1 { margin: 0; font-size: clamp(2rem, 7vw, 3rem); color: var(--dark, #173B2E); }
.lab8-lost p { margin: 0; max-width: 34ch; color: var(--text-light, #5B665F); }
.lab8-lost__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.lab8-lost .secondary-btn { background: transparent; color: var(--primary, #0F6B4F); border-color: var(--primary, #0F6B4F); }

/* ---- home: the restaurant in one paragraph, and the three things guests came for ---- */
.lab8-facts { padding: 40px 0; background: var(--surface); border-bottom: 1px solid var(--lab8-line); }
.lab8-facts__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 64px; align-items: center; }
.lab8-facts__lead { margin: 0; max-width: 60ch; font-size: 1.04rem; line-height: 1.75; color: var(--text); text-wrap: pretty; }
.lab8-facts__lead strong { color: var(--dark); font-weight: 600; }
.lab8-facts__list { list-style: none; margin: 0; padding: 0; }
.lab8-facts__list li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 6px 16px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--lab8-line); }
.lab8-facts__list li:first-child { border-top: 0; padding-top: 0; }
.lab8-facts__list li:last-child { padding-bottom: 0; }
.lab8-facts__list span { font: 600 .72rem/1.5 "Inter", "Inter Fallback", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); }
.lab8-facts__list div { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.lab8-facts__list a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lab8-line); text-underline-offset: 4px; }
.lab8-facts__list a:hover { text-decoration-color: currentColor; }
.lab8-facts__list .lab8-open { margin: 0; }
@media (max-width: 860px) {
    .lab8-facts { padding: 30px 0; }
    .lab8-facts__grid { grid-template-columns: 1fr; gap: 22px; }
    .lab8-facts__lead { font-size: 1rem; }
    .lab8-facts__list li { grid-template-columns: 104px minmax(0, 1fr); }
}

/* ---- home: what guests say (real Google reviews, refreshed by tools/fetch_reviews.py) ---- */
.lab8-reviews { background: var(--secondary); }
.lab8-reviews .section-title { text-align: center; }
.lab8-reviews__average { margin: -14px 0 30px; text-align: center; color: var(--text-light); }
.lab8-reviews__average b { color: var(--dark); font-size: 1.15em; }
.lab8-reviews__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.lab8-review { display: flex; flex-direction: column; flex: 0 1 calc((100% - 44px) / 3); margin: 0; padding: 26px 26px 22px;
    border: 1px solid var(--lab8-line); border-radius: 18px; background: var(--surface); }
.lab8-review__stars { margin: 0 0 12px; color: var(--warm-gold); font-size: 1.05rem; letter-spacing: .16em; line-height: 1; }
.lab8-review blockquote { margin: 0; }
.lab8-review blockquote p { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.7; text-wrap: pretty; }
.lab8-review blockquote { flex: 1 0 auto; }
.lab8-review figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lab8-line); }
.lab8-review figcaption strong { color: var(--dark); font-weight: 600; }
.lab8-review figcaption span { color: var(--text-light); font-size: .84rem; }
.lab8-reviews__more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin: 34px 0 0; }
@media (max-width: 1000px) { .lab8-review { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 700px) {
    /* one row to swipe through, so five reviews do not make the page five screens longer */
    .lab8-reviews__grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 14px; justify-content: start;
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
    .lab8-review { padding: 22px 20px 18px; scroll-snap-align: start; }
    .lab8-reviews__more { flex-direction: column; margin-top: 18px; }
}

/* ---- gallery: each frame holds its shape before the photograph arrives ---- */
.lab8-gallery > .menu-card > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---- the narrowest phones (320px): nothing is wider than the screen ----
   A dish with a photograph and a long first word ("Mediterranean Chickpea &
   Quinoa") needed more room than is left beside the price and the "+", and
   pushed the page 19px sideways. A smaller picture and tighter gaps give the
   name its room; if a word still cannot fit, it wraps instead of widening. */
@media (max-width: 360px) {
    .menu-card--with-image { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
    .menu-card--with-image .menu-image img { width: 72px; height: 62px; }
    .menu-card .menu-header { gap: 8px; }
    .menu-card .menu-header h3 { font-size: 1.16rem; overflow-wrap: anywhere; }
    .menu-card .lab8-buy { gap: 8px; }
    .menu-card .lab8-add { width: 34px; height: 34px; font-size: 1.25rem; }
}
/* FAQ: a `1fr` column is never narrower than its longest word, so the email
   address in an answer widened the page by 14px. */
.faq-item { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) { .faq-list { grid-template-columns: minmax(0, 1fr); } }

/* ---- steadier pages: nothing below the fold moves when the web fonts arrive ---- */
@media (min-width: 861px) { .page-hero { min-height: 340px; } }
/* "Open now" in the hero is filled in by a script; keep its place for it. */
.hero-content .lab8-open[hidden] { display: inline-flex !important; visibility: hidden; min-height: 44px; }

/* While Inter is still on its way the text is set in the device's own sans-serif,
   which is narrower: paragraphs that fit on one line wrapped onto two when Inter
   arrived and pushed the page down. This stand-in is the local face scaled to
   Inter's width, so the swap changes the letterforms and nothing else. */
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial"), local("Helvetica"), local("Roboto"), local("Liberation Sans");
    size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%;
}

/* ---------------- What's on: the film in a corner (js/lab8/stories.js) ----------------
   A circle that already plays a silent loop; a tap grows it into a card in the same corner,
   and the page stays usable around it (Edwin, 2026-10-28: no full-screen takeover). */
.lab8-story {
    --story-size: 128px;
    --card-w: min(64vw, 280px, calc((100dvh - 140px) * 9 / 16));
    position: fixed; z-index: 890; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 12px; pointer-events: none;
    opacity: 0; transform: translateY(20px) scale(.9); transform-origin: 0 100%;
    transition: opacity .35s, transform .45s var(--lab8-ease), bottom .3s var(--lab8-ease);
}
@media (min-width: 601px) { .lab8-story { --story-size: 136px; --card-w: min(300px, calc((100dvh - 140px) * 9 / 16)); left: 20px; bottom: 20px; } }
.lab8-story.is-in { opacity: 1; transform: none; }
.lab8-story.is-in .lab8-story__frame { pointer-events: auto; }
.lab8-story__frame {
    position: relative; flex: none; width: var(--story-size); height: var(--story-size); overflow: hidden; border-radius: 50%;
    background: #111; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #CFC8BE, 0 14px 34px rgba(12, 30, 24, .34);
    transition: width .45s var(--lab8-ease), height .45s var(--lab8-ease), border-radius .45s var(--lab8-ease), box-shadow .3s;
}
/* Not yet watched: the ring is the site's green and breathes. */
.lab8-story.is-new .lab8-story__frame { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary), 0 14px 34px rgba(12, 30, 24, .34); animation: lab8-story-breathe 2.6s ease-in-out infinite; }
@keyframes lab8-story-breathe {
    0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary), 0 0 0 6px rgba(15, 107, 79, .32), 0 14px 34px rgba(12, 30, 24, .34); }
    50% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary), 0 0 0 16px rgba(15, 107, 79, 0), 0 14px 34px rgba(12, 30, 24, .34); }
}
.lab8-story__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }
.lab8-story__face { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lab8-story__face:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
/* A muted speaker in the circle: there is sound to be had. */
.lab8-story__badge {
    position: absolute; z-index: 2; right: 16px; bottom: 16px; display: grid; place-items: center; width: 30px; height: 30px;
    border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none;
}
/* The arrow that asks for the tap. */
.lab8-story__hint {
    display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 16px 11px 12px; white-space: nowrap; pointer-events: none;
    border-radius: var(--radius-pill); background: var(--dark); color: #fff; box-shadow: 0 10px 26px rgba(12, 30, 24, .3);
    font: 600 .92rem/1 "Inter", "Inter Fallback", sans-serif; opacity: 0; transform: translateX(-10px);
    transition: opacity .35s, transform .45s var(--lab8-ease);
}
.lab8-story__arrow { display: inline-block; color: #E9DDD0; font-size: .8rem; }
.lab8-story.is-hinting .lab8-story__hint { opacity: 1; transform: none; }
.lab8-story.is-hinting .lab8-story__arrow { animation: lab8-story-nudge 1.1s ease-in-out infinite; }
@keyframes lab8-story-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@media (hover: hover) { .lab8-story.is-in:not(.is-open) .lab8-story__frame:hover + .lab8-story__hint { opacity: 1; transform: none; } }

/* Put it away: an x above the circle's top-left, outside it and clear of the ring (about 20 px),
   so a tap meant for the film cannot hit it. A 44 px target around a 30 px mark. */
.lab8-story__dismiss {
    position: absolute; left: -4px; bottom: calc(var(--story-size) + 14px); display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.lab8-story.is-in .lab8-story__dismiss { pointer-events: auto; }
.lab8-story__dismiss span {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(23, 59, 46, .82); color: #fff; box-shadow: 0 4px 12px rgba(12, 30, 24, .3);
    font: 400 21px/1 "Inter", sans-serif;
}
.lab8-story__dismiss:focus-visible { outline: none; }
.lab8-story__dismiss:focus-visible span { outline: 3px solid rgba(15, 107, 79, .5); outline-offset: 2px; }
.lab8-story.is-open .lab8-story__dismiss { display: none; }

/* Open: a card in the same corner; nothing else on the page is locked or dimmed. */
.lab8-story.is-open .lab8-story__frame {
    width: var(--card-w); height: calc(var(--card-w) * 16 / 9); border-radius: 18px; animation: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .45);
}
.lab8-story.is-open .lab8-story__badge, .lab8-story.is-open .lab8-story__hint { display: none; }
.lab8-story__bar, .lab8-story__btn, .lab8-story__tap, .lab8-story__end { display: none; }
.lab8-story.is-open .lab8-story__bar { position: absolute; z-index: 2; left: 10px; right: 10px; top: 8px; display: block; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.lab8-story__bar span { display: block; width: 0; height: 100%; background: #fff; }
.lab8-story.is-open .lab8-story__btn {
    position: absolute; z-index: 3; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer;
}
.lab8-story__sound { left: 10px; }
.lab8-story__big { right: 52px; }
.lab8-story__close { right: 10px; font: 400 26px/1 "Inter", sans-serif; }
.lab8-story__sound[aria-pressed="true"] .off, .lab8-story__sound[aria-pressed="false"] .on { display: none; }
.lab8-story__btn:focus-visible, .lab8-story__more button:focus-visible { outline: 3px solid #E9DDD0; outline-offset: 2px; }
.lab8-story.is-open .lab8-story__tap:not([hidden]) {
    position: absolute; z-index: 2; left: 50%; top: 50%; display: block; transform: translate(-50%, -50%); padding: 0;
    border: 0; background: none; color: #fff; cursor: pointer;
}
.lab8-story__tap span {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; white-space: nowrap; border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, .62); font: 600 .9rem/1 "Inter", "Inter Fallback", sans-serif;
}
.lab8-story__tap span::before { content: ""; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
/* The end: the film's last frame (logo and address) holds, the choice sits below it. */
.lab8-story.is-open .lab8-story__end:not([hidden]) {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: block; padding: 18px 10px 12px; text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72) 26%, rgba(0, 0, 0, .9));
    opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--lab8-ease);
}
.lab8-story.is-open .lab8-story__end.is-in { opacity: 1; transform: none; }
.lab8-story__end-text { margin: 0 0 8px; color: #fff; font: 700 1rem/1.2 "Abhaya Libre", Georgia, serif; }
.lab8-story__actions { display: flex; justify-content: center; gap: 8px; }
.lab8-story__end .lab8-btn { min-height: 38px; padding: 8px 14px; font-size: .86rem; }
.lab8-story__ghost { border-color: rgba(255, 255, 255, .72); color: #fff; }
.lab8-story__ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.lab8-story__more { display: flex; justify-content: center; gap: 14px; margin-top: 6px; }
.lab8-story__more button { padding: 6px 4px; border: 0; background: none; color: #E9DDD0; cursor: pointer; font: 500 .82rem/1 "Inter", "Inter Fallback", sans-serif; text-decoration: underline; text-underline-offset: 3px; }

/* One thing at a time at the bottom: out of the way of a sheet, the booking flow and the Lab Notes card. */
html.lab8-locked .lab8-story, body:has(> .lab8-prompt) .lab8-story:not(.is-open) { opacity: 0; transform: translateY(20px) scale(.9); }
html.lab8-locked .lab8-story .lab8-story__frame, body:has(> .lab8-prompt) .lab8-story:not(.is-open) .lab8-story__frame { pointer-events: none; }
@media (max-width: 600px) {
    html.lab8-has-tray .lab8-story { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }      /* above the takeout pill */
}
@media (prefers-reduced-motion: reduce) {
    .lab8-story, .lab8-story__frame, .lab8-story__hint, .lab8-story__end { transition: none; }
    .lab8-story.is-new .lab8-story__frame, .lab8-story.is-hinting .lab8-story__arrow { animation: none; }
}
