/* ==========================================================================
   MARCO CAFE — QR MENU
   A phone-width mini app that rides on the tokens defined in style.css.
   Category banners -> category page -> product detail sheet.
   ========================================================================== */

:root {
    --qr-col: 430px;      /* the column stays phone-sized on every screen */
    --qr-pad: 18px;
    --qr-header-h: 60px;
}

body.qr {
    background: var(--c-100);
    scroll-padding-top: calc(var(--qr-header-h) + 12px);
}
body.qr.is-locked { overflow: hidden; }

.qr-shell {
    width: 100%;
    max-width: var(--qr-col);
    margin-inline: auto;
    padding-inline: var(--qr-pad);
}

/* Faint frame so the narrow column does not float in a void on desktop */
@media (min-width: 720px) {
    body.qr {
        background:
            radial-gradient(120% 60% at 50% 0%, var(--g-100) 0%, transparent 60%),
            var(--c-100);
    }
    .qr-page {
        max-width: calc(var(--qr-col) + 2px);
        margin-inline: auto;
        background: var(--c-50);
        border-inline: 1px solid var(--c-200);
        min-height: 100vh;
        box-shadow: var(--sh-lg);
    }
}

/* --------------------------------------------------------------- Header -- */
.qr-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--qr-header-h);
    display: flex;
    align-items: center;
    background: rgba(253, 250, 243, .94);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--c-200);
}
.qr-header .qr-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qr-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.qr-brand .brand-mark { --mark-size: 34px; }
.qr-brand b {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--g-900);
    white-space: nowrap;
}

.qr-actions { display: flex; align-items: center; gap: 8px; }
.qr-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--c-300);
    background: var(--c-50);
    color: var(--g-700);
    font-size: 15px;
    transition: background var(--t), border-color var(--t), color var(--t);
}
.qr-icon:hover { background: var(--g-700); border-color: var(--g-700); color: var(--c-50); }

/* Back link on a category page */
.qr-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--g-700);
    min-width: 0;
}
.qr-back i { font-size: 13px; }
.qr-back span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----------------------------------------------------------------- Hero -- */
.qr-intro { padding: 26px 0 20px; text-align: center; }
.qr-intro .eyebrow { justify-content: center; }
.qr-intro h1 { font-size: 30px; margin-bottom: 8px; }
.qr-intro p { font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------- Banners --- */
.qr-banners { display: grid; gap: 14px; padding-bottom: 34px; }

.qr-banner {
    position: relative;
    display: grid;
    place-items: center;
    height: 168px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sh-md);
    isolation: isolate;
    transition: transform var(--t), box-shadow var(--t);
}
.qr-banner:active { transform: scale(.985); }
@media (hover: hover) {
    .qr-banner:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
    .qr-banner:hover img { transform: scale(1.06); }
}

.qr-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .8s var(--ease);
}

/* Readability scrim over a photograph */
.qr-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(38, 49, 31, .28), rgba(38, 49, 31, .62));
}

/* No photograph yet: a designed panel rather than an empty box. The moment a
   category image is uploaded the banner switches to the photo automatically. */
.qr-banner--plain {
    background: linear-gradient(150deg, var(--g-600), var(--g-800) 55%, var(--g-900));
}
.qr-banner--plain::after {
    background:
        radial-gradient(90% 120% at 15% 0%, rgba(255, 255, 255, .12), transparent 60%);
}
.qr-banner .qr-banner-mark {
    position: absolute;
    right: -14px;
    bottom: -26px;
    font-size: 116px;
    line-height: 1;
    color: rgba(255, 255, 255, .1);
    z-index: -1;
    pointer-events: none;
}

.qr-banner h2 {
    position: relative;
    z-index: 1;
    padding: 16px 22px;
    text-align: center;
    color: #fff;
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.12;
    letter-spacing: -.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 14px rgba(0, 0, 0, .5);
}
.qr-banner .qr-banner-count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(253, 250, 243, .92);
    color: var(--g-800);
    font-size: 11.5px;
    font-weight: 700;
}

/* Image-led menu landing: full, swipe-friendly coffee-house rhythm. */
.qr-intro { padding: 44px 0 34px; text-align: left; }
.qr-intro .eyebrow { justify-content: flex-start; }
.qr-intro h1 { font-size: clamp(42px, 8vw, 72px); line-height: .95; letter-spacing: -.05em; }
.qr-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qr-banner { min-height: clamp(280px, 38vw, 440px); border-radius: 0; }
.qr-banner h2 { left: clamp(20px, 3vw, 34px); bottom: clamp(22px, 3vw, 34px); font-size: clamp(27px, 3.2vw, 44px); line-height: .95; }
.qr-banner .qr-banner-count { top: 18px; right: 18px; }

@media (max-width: 680px) {
    .qr-intro { padding: 34px 0 26px; }
    .qr-intro h1 { font-size: 48px; }
    .qr-banners { display: grid; grid-template-columns: 1fr; gap: 8px; margin-inline: calc(var(--qr-pad) * -1); }
    .qr-banner { min-height: 68svh; }
    .qr-banner:nth-child(even) { min-height: 52svh; }
    .qr-banner h2 { left: var(--qr-pad); right: var(--qr-pad); bottom: 25px; font-size: clamp(34px, 10vw, 46px); }
    .qr-banner .qr-banner-count { top: 18px; right: var(--qr-pad); }
}

/* ------------------------------------------------------- Category page --- */
.qr-cat-head {
    position: relative;
    height: 150px;
    border-radius: 18px;
    overflow: hidden;
    margin: 18px 0 22px;
    display: grid;
    place-items: center;
    isolation: isolate;
}
.qr-cat-head img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.qr-cat-head::after {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(38, 49, 31, .3), rgba(38, 49, 31, .66));
}
.qr-cat-head.qr-banner--plain::after {
    background: radial-gradient(90% 120% at 15% 0%, rgba(255, 255, 255, .12), transparent 60%);
}
.qr-cat-head h1 {
    position: relative; z-index: 1;
    color: #fff;
    font-size: clamp(23px, 6.5vw, 29px);
    text-align: center;
    padding: 14px 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 14px rgba(0, 0, 0, .5);
}

/* ---------------------------------------------------------- Product row -- */
.qr-list { display: grid; padding-bottom: 8px; }

.qr-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
    padding: 15px 4px;
    border-bottom: 1px solid var(--c-200);
    text-align: left;
    cursor: pointer;
    transition: background var(--t);
}
.qr-row:last-child { border-bottom: 0; }
.qr-row:active { background: var(--g-50); }

/* Emitted only for products that have a photograph — a row without one simply
   uses the full width instead of showing an empty frame. */
.qr-thumb {
    flex: none;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--g-100);
}
.qr-thumb img { width: 100%; height: 100%; object-fit: cover; }

.qr-row-main { flex: 1; min-width: 0; }
.qr-row-head { display: flex; align-items: baseline; gap: 8px; }
.qr-row-head h3 {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
}
.qr-dots {
    flex: 1;
    min-width: 14px;
    height: 0;
    border-bottom: 1px dotted var(--c-400);
    transform: translateY(-4px);
}
.qr-row-price {
    font-family: var(--display);
    font-size: 15.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--g-800);
    white-space: nowrap;
}
.qr-row p {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-2);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.qr-row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qr-star { color: var(--mint); font-size: 11px; margin-left: 3px; }

/* ------------------------------------------------------- Search overlay -- */
.qr-search {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--c-100);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.qr-search.is-open { opacity: 1; visibility: visible; transform: none; }

.qr-search-bar {
    flex: none;
    background: var(--c-50);
    border-bottom: 1px solid var(--c-200);
    padding: 12px 0;
}
.qr-search-bar .qr-shell { display: flex; align-items: center; gap: 10px; }
.qr-search-bar input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--c-300);
    background: var(--c-100);
    font-size: 15px;
    outline: none;
}
.qr-search-bar input:focus { border-color: var(--g-500); box-shadow: 0 0 0 4px var(--g-100); }

.qr-search-body { flex: 1; overflow-y: auto; padding: 16px 0 40px; -webkit-overflow-scrolling: touch; }

.qr-search-hint {
    text-align: center;
    padding: 46px 20px;
    color: var(--ink-3);
    font-size: 14px;
}
.qr-search-hint i { display: block; font-size: 30px; color: var(--g-300); margin-bottom: 14px; }

.qr-result-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--g-500);
    margin-bottom: 2px;
}

/* ------------------------------------------------ Sticky category strip -- */
/* Sits directly under the header so a guest can hop between sections without
   going back to the menu index. */
.qr-catbar {
    position: sticky;
    top: var(--qr-header-h);
    z-index: 55;
    background: rgba(253, 250, 243, .96);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--c-200);
}
.qr-catbar-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px var(--qr-pad);
    /* Hide the scrollbar: this is a phone-shaped strip, the overflow is the
       affordance and a bar on desktop just looks broken. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.qr-catbar-track::-webkit-scrollbar { display: none; }

.qr-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--c-300);
    background: var(--c-50);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    transition: background var(--t), color var(--t), border-color var(--t);
}
.qr-chip i { font-size: 11px; color: var(--g-500); }
.qr-chip:active { transform: scale(.97); }
.qr-chip.is-active {
    background: var(--g-700);
    border-color: var(--g-700);
    color: var(--c-50);
}
.qr-chip.is-active i { color: var(--g-300); }

/* -------------------------------------------------------- Detail sheet --- */
.qr-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(38, 49, 31, .55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}
.qr-sheet.is-open { opacity: 1; visibility: visible; }

.qr-sheet-box {
    position: relative;
    width: 100%;
    max-width: var(--qr-col);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--c-50);
    border-radius: 24px 24px 0 0;
    transform: translateY(24px);
    transition: transform .35s var(--ease);
    padding-bottom: 26px;
}
.qr-sheet.is-open .qr-sheet-box { transform: none; }

.qr-sheet-grab {
    width: 44px;
    height: 4px;
    border-radius: 3px;
    background: var(--c-300);
    margin: 10px auto 0;
}

/* ------------------------------------------------ Paging between items --- */
/* The block that swaps when swiping. transform is driven from JS during the
   drag, then handed back to these classes for the release animation. */
.qr-sheet-swipe { will-change: transform, opacity; }

@keyframes qr-in-right {
    from { transform: translateX(38px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
@keyframes qr-in-left {
    from { transform: translateX(-38px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.qr-sheet-swipe.slide-in-right { animation: qr-in-right .26s var(--ease); }
.qr-sheet-swipe.slide-in-left  { animation: qr-in-left  .26s var(--ease); }

/* Fixed to the viewport, not to the scrolling sheet, and pushed just outside
   the phone column so they never sit on top of the text. */
.qr-sheet-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(253, 250, 243, .94);
    border: 1px solid var(--c-300);
    color: var(--g-800);
    box-shadow: var(--sh-md);
    z-index: 4;
    transition: opacity var(--t), background var(--t);
}
.qr-sheet-nav:hover { background: #fff; }
/* calc: half the viewport, minus half the column, minus the button and a gap */
.qr-sheet-nav--prev { left:  calc(50% - var(--qr-col) / 2 - 52px); }
.qr-sheet-nav--next { right: calc(50% - var(--qr-col) / 2 - 52px); }
.qr-sheet-nav:disabled { opacity: .28; pointer-events: none; }
.qr-sheet-nav[hidden] { display: none; }

/* Narrow screens have no room beside the column, so tuck them just inside. */
@media (max-width: 560px) {
    .qr-sheet-nav--prev { left: 6px; }
    .qr-sheet-nav--next { right: 6px; }
}

/**
 * Touch devices used to hide these entirely — "they can swipe, and the arrows
 * would only cover the photo". The result was that on a phone, the one place a
 * QR menu is ever read, nothing on screen suggested the sheet moved at all.
 *
 * They stay, but quieter: smaller, translucent, pinned to the sheet edges
 * where the photograph has no detail. Enough to be seen, not enough to be in
 * the way, and tappable for anyone who never thinks to swipe.
 */
@media (hover: none) {
    .qr-sheet-nav {
        width: 34px;
        height: 34px;
        background: rgba(38, 49, 31, .42);
        border-color: transparent;
        color: #fff;
        font-size: 12px;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        box-shadow: none;
        animation: qr-nav-pulse 2.4s var(--ease) 3;
    }
    /* Pulled in from the very edge so a thumb resting on the phone frame does
       not sit on top of them. */
    .qr-sheet-nav--prev { left: 8px; }
    .qr-sheet-nav--next { right: 8px; }
}

/**
 * Scale only — deliberately no opacity here.
 *
 * The keyframes used to animate opacity too, and an animation outranks a
 * plain declaration: the disabled arrow kept pulsing itself back to full
 * opacity for the first seven seconds and then snapped away when the
 * animation ended. That is what looked wrong after the first tap — the
 * arrow's visibility and its actual state disagreed until the pulse finished.
 */
@keyframes qr-nav-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50%      { transform: translateY(-50%) scale(1.16); }
}

@media (prefers-reduced-motion: reduce) {
    .qr-sheet-nav { animation: none; }
}

/* ------------------------------------------------------------- Pager bar --
   Sticks to the top of the sheet while it scrolls. This is the affordance
   that actually tells a guest the sheet moves: a bare "3 / 12" says how many
   there are, not that you can reach them. The buttons work by tap as well, so
   swiping is never the only way through.
   -------------------------------------------------------------------------- */
.qr-sheet-pager {
    position: sticky;
    top: 8px;
    z-index: 3;
    width: fit-content;
    margin: 8px auto 0;
    padding: 4px 5px;
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 999px;
    background: rgba(38, 49, 31, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--sh-sm);
}
.qr-sheet-pager[hidden] { display: none; }

.qr-pager-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 13px;
    transition: background .2s ease, opacity .2s ease;
}
.qr-pager-btn:hover { background: rgba(255, 255, 255, .16); }
.qr-pager-btn:active { background: rgba(255, 255, 255, .26); }
.qr-pager-btn:disabled { opacity: .3; cursor: default; }
.qr-pager-btn:disabled:hover { background: transparent; }

.qr-pager-count {
    min-width: 52px;
    text-align: center;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    pointer-events: none;
}

/* ------------------------------------------------------------ Swipe hint --
   Shown once per visit, over the sheet, then never again. The arrows drift
   outwards to suggest the gesture rather than describe it.
   -------------------------------------------------------------------------- */
.qr-swipe-hint {
    /* Fixed, not absolute: it is a child of the fixed overlay rather than of
       the scrolling sheet, so it stays put while the product page scrolls. */
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(21, 29, 17, .86);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--sh-md);
    animation: qr-hint-in .3s var(--ease);
}
.qr-swipe-hint[hidden] { display: none; }
.qr-swipe-hint.is-out { opacity: 0; transition: opacity .4s ease; }
.qr-swipe-hint i { font-size: 11px; color: var(--g-300); }
.qr-swipe-hint i:first-child { animation: qr-hint-left 1.5s var(--ease) infinite; }
.qr-swipe-hint i:last-child  { animation: qr-hint-right 1.5s var(--ease) infinite; }

@keyframes qr-hint-in {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes qr-hint-left  { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes qr-hint-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
    .qr-swipe-hint,
    .qr-swipe-hint i { animation: none; }
}

/* ----------------------------------------------------------- Suggestions -- */
.qr-suggest {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--c-200);
}
.qr-suggest[hidden] { display: none; }
.qr-suggest-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--g-600);
    margin-bottom: 12px;
}
.qr-suggest-title:not(:first-child) { margin-top: 22px; }

.qr-suggest-list { display: grid; gap: 8px; }

.qr-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 12px 9px 9px;
    border: 1px solid var(--c-200);
    border-radius: 14px;
    background: var(--c-100);
    text-align: left;
    transition: background var(--t), border-color var(--t);
}
.qr-suggest-item:active { transform: scale(.985); }
.qr-suggest-item:hover { background: var(--g-50); border-color: var(--g-200); }

.qr-suggest-item img,
.qr-suggest-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}
.qr-suggest-icon {
    display: grid;
    place-items: center;
    background: var(--g-100);
    color: var(--g-500);
    font-size: 15px;
}

.qr-suggest-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.qr-suggest-text b {
    font-size: 14px;
    font-weight: 600;
    color: var(--g-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qr-suggest-text span { font-size: 12.5px; color: var(--ink-3); }

/* Only rendered when the product actually has a photograph. */
.qr-sheet-media {
    position: relative;
    margin: 14px 18px 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--g-100);
}
.qr-sheet-media img { width: 100%; height: 100%; object-fit: cover; }

/* The QR menu is primarily used on phones. Product photography must remain
   fully visible there; portrait and square uploads get calm letterboxing
   instead of being cropped to a landscape card. */
@media (max-width: 560px) {
    .qr-sheet { align-items: flex-end; }
    .qr-sheet-box {
        height: auto;
        max-height: calc(100dvh - env(safe-area-inset-top, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 20px 20px 0 0;
        padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
    }
    .qr-sheet-media {
        height: min(42dvh, 340px);
        min-height: 220px;
        aspect-ratio: auto;
        margin: 10px 12px 0;
        border-radius: 13px;
        background: var(--c-100);
    }
    .qr-sheet-media img {
        object-fit: contain;
        object-position: center;
    }
    .qr-sheet-body { padding: 15px 16px 0; }
    .qr-sheet-close { position: sticky; float: right; top: 9px; margin: 0 10px -34px 0; }
}

.qr-sheet-body { padding: 18px 20px 0; }
/* Without a photo the title would slide under the close button. */
.qr-sheet-media[hidden] + .qr-sheet-body { padding-top: 8px; }
.qr-sheet-media[hidden] + .qr-sheet-body .qr-sheet-head { padding-right: 40px; }
.qr-sheet-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}
.qr-sheet-head h2 { font-size: 21px; line-height: 1.25; }
.qr-sheet-head .qr-row-price { font-size: 21px; }
.qr-sheet-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--g-500);
    margin-bottom: 6px;
}
.qr-sheet-desc { font-size: 14px; color: var(--ink-2); margin: 12px 0 18px; }

.qr-facts {
    border: 1px solid var(--g-100);
    background: var(--g-50);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
}
.qr-fact {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    font-size: 13px;
    color: var(--g-700);
}
.qr-fact + .qr-fact { border-top: 1px dashed var(--g-200); }
.qr-fact > span:first-child { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.qr-fact i { color: var(--g-500); }
.qr-fact-value { text-align: right; color: var(--g-900); font-weight: 600; }

.qr-sheet-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(253, 250, 243, .92);
    color: var(--g-800);
    box-shadow: var(--sh-sm);
    z-index: 2;
}

@media (max-width: 560px) {
    .qr-sheet-body { padding: 15px 16px 0; }
    .qr-sheet-close {
        position: sticky;
        float: right;
        top: 9px;
        right: auto;
        margin: 0 10px -34px 0;
        z-index: 5;
    }
}

/* --------------------------------------------------------------- Footer -- */
.qr-foot {
    margin-top: 26px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--c-200);
    text-align: center;
}
.qr-foot .brand-mark { --mark-size: 52px; margin: 0 auto 12px; }
.qr-foot p { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.qr-foot .qr-foot-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* The credit strip spans the phone column, not the 1200px site grid. */
.qr-page .attribution-inner {
    padding-inline: var(--qr-pad);
    font-size: 11.5px;
    gap: 5px 10px;
}

.qr-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-top: 26px;
    background: var(--g-50);
    border: 1px solid var(--g-100);
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-2);
}
.qr-note i { color: var(--g-500); margin-top: 2px; }
