/* ============================================================
   CUSTOM — Per-store overrides for Template TF
   Add store-specific tweaks here. Loaded last so it wins
   over theme.css and style.css.
   ============================================================ */

/* Rakesh 2026-10-29: overflow:hidden makes min-height 0, so 26 categories shrank instead of scrolling - keep full height, sidebar scrolls */
.menu-buttons .menu-button { flex-shrink: 0; }

/* ===== TASK E (2026-11-14): repeat-defect guards, measured on a fresh TF scaffold ===== */
/* item 1: gallery tiles at 390@2 were 1.80-2.02x (one 350px column on phones); two columns keep every tile <=1.5x; 6 tracks with tiles spanning 3 = the same 2 columns (TF item 4 gallery fit) */
@media (max-width: 560px) { :root .gallery-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; } :root .gallery-wall figcaption { padding: 0.55rem 0.7rem; font-size: 0.9rem; } }
/* item 3: back-to-top (fixed 3rem at right 1.4rem) covered "Powered by iOrders.ca" at 375-1280; reserve its width at the end of the legal row
   only where the row reaches it (0 on wide screens) */
:root .foot-legal { padding-right: max(0px, calc(5.5rem - (100vw - 100%) / 2)); }
/* item 6: small text (<14px) at >=4.5:1 on its real background (Dennis's bar) */
:root .dish-rating .rating-count { color: var(--muted); }                       /* was gold on cream, 2.0:1 (Golden Bell a943b1a pattern) */
:root .kicker:not(.kicker--light):not(.menu-band .kicker), :root p.cs-subtitle, :root #home-hero .cs-subtitle, :root .plate .plate-foot { color: var(--chili-dark); }   /* brand red 3.8-4.35:1 on cream/white */
:root .menu-band .kicker { color: color-mix(in srgb, var(--gold) 80%, #fff); }  /* gold on the green band 4.46:1 -> lighter gold */
/* hero kicker sits on the store's photo: a 70% dark pill keeps white text >=6.6:1 over any photo, even pure white */
:root .hero-full .kicker--light { background: rgba(24, 20, 16, 0.7); padding: 0.3rem 0.75rem; border-radius: 999px; }

/* ===== No-photo fallback (TF port of PT rule 31 + d916636, Elena kh75hh77 TF item 3, 2026-11-20) =====
   A hero / split section / card without a photo sizes to its content: no fixed or vh height, no blank
   media box, no empty grid column, no empty band >160px. Every rule is guarded by :has(), so pages
   with photos are unchanged. Keep these lines in any custom.css rewrite. */
/* home hero without a photo: the text band sizes to its text (PT d916636), and the next section's top
   padding is trimmed (Main Track cd4db54: 162-168px at 1280/1440 -> 135) */
.hero-full:not(:has(.hero-full__bg img)) { min-height: 0; padding-block: 0; }
.hero-full:not(:has(.hero-full__bg img)) .hero-full__content { margin-block: 0; padding-block: clamp(3rem, 6vw, 4.5rem); }
.hero-full:not(:has(.hero-full__bg img)) + section { padding-top: clamp(3rem, 5vw, 4rem); }
/* media boxes left without an image are removed, not drawn as blank boxes */
:is(.hero-full__bg, .ph-img, .explore__image, .dish-hero-image, .story-collage, .snap-grid):not(:has(img, video, iframe)) { display: none; }
/* two-column splits with no photo go one column (was: text in one track, an empty track beside it) */
.page-hero--split .wrap:not(:has(.ph-img img)) { grid-template-columns: 1fr; }
.explore__container:not(:has(.explore__image img)) { grid-template-columns: 1fr; }
.dish-hero-container:not(:has(.dish-hero-image img)) { grid-template-columns: 1fr; }
.story .wrap:not(:has(img)) { grid-template-columns: 1fr; }
/* a section left with no text and no media at all (e.g. the about photo strip without photos) */
main > section:not(:has(img, video, iframe, svg, h1, h2, h3, h4, p, li, a, button, form)) { display: none; }
