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

/* ============================================================
   PT-BASELINE 2026-10-24 (ported from Oriental Bowl, generic; standing decision 18.8)
   Clean, bright, minimal, photo-led. White base, light-grey panels.
   ONE accent (--brand, from the logo) on buttons + at most 2 full-colour bands
   (.menu-band + .cta-band). Top bar, kickers, heading <em>, nav active = ink.
   16px image corners (logo + hero excluded). No shadows, no gradients, no glass.
   Two type styles only (600 headings/labels, 400 body) - see PT-DESIGN-RULES rule 5.
   ============================================================ */
:root {
  --pt-r-img: 16px;
  --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --pt-shadow: none;
}
html, body { background: #ffffff; }
b, strong, th, dt { font-weight: 600; }
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }

/* photos: 16px corners (logos + hero slides excluded) */
main img, .plate img, .gallery img, figure img, .ph-img img, .dish-hero img, .about-img img,
.story img, .split img, .media img, .contact-sec iframe, main iframe {
  border-radius: var(--pt-r-img);
}
.brand img, .foot-brand img, .hero-slide img, .hero-full img, .hero-slides img, [class*="hero-slide"] img { border-radius: 0; }

/* no glass */
*, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* accent budget: accent only on buttons + .menu-band + .cta-band */
.site-topline { background: var(--canvas); color: var(--ink); }
.site-topline a, .site-topline a:hover { color: var(--ink); }
.kicker, .kicker--light, .menu-band .kicker { color: var(--pt-ink-2); }
h1 em, h2 em, h3 em, .sec-head em, .faq-intro em, .story-copy em { color: inherit; font-style: normal; background: none; }
.menu-band h2 em, .cta-band h2 em { color: #fff; }
.plate-foot, .plate-no { color: var(--pt-ink-2); }
.site-nav a.active, .site-nav a:hover { background: var(--canvas); color: var(--ink); }
main a:not(.btn):not(.btn-line):not(.btn-ghost):not(.cat-tile):not(.arrow-btn) { color: var(--ink); text-decoration-color: var(--pt-line); }
/* body-copy links are underlined (kh75ak0t, Buddy's Subs): plain class-less links inside a paragraph or list item only;
   the :not() chain repeats the colour line's so this rule outranks it (0,6,3 > 0,5,2) and currentColor wins;
   nav, buttons, chips and cards carry a class and keep their own look */
main :is(p, li) a:not([class]):not(.btn):not(.btn-line):not(.btn-ghost):not(.cat-tile):not(.arrow-btn) { text-decoration-line: underline; text-decoration-color: currentColor; }
/* kh7a7wwv: PT icons are inline SVG (icon-font CDNs removed). Dish chips keep the ink the ri- icons had; feature-line icons keep --basil from style.css. */
.dish-detail .ico { color: var(--ink); flex: 0 0 1em; width: 1em; height: 1em; }
.delivery-area-card h3, .package-card h3 { color: var(--ink); }

/* no icon rows: store bar + info cards are text only (markup removed; this hides leftovers) */
.store-bar .sb-ico, .info-card .ic, .chip .ico, .chip-row .ico { display: none !important; }

/* ---- Dennis QA fixes from Oriental Bowl that apply to every PT site ---- */
/* white text/link on the accent CTA band (>= 4.5:1), beating the ink link rule above */
.cta-band a:not(.btn), .cta-band .cta-phone a, .cta-band .cta-phone a:hover { color: #fff !important; text-decoration-color: rgba(255, 255, 255, 0.6); }
/* opened mobile nav: the order button stays white on accent (hover included) */
.site-nav .nav-extra .btn, .site-nav .nav-extra .btn:hover, .site-nav .nav-extra .btn:focus-visible { color: #fff; }
/* mobile CLS: #header-container holds the top line + header height while components.js loads it
   (34.375 + 81 px on the PT header; re-measure only if a store changes the header). */
#header-container:empty { display: block; min-height: 115.375px; }
/* PER STORE (Dennis, Krishna Dosa Saskatoon QA): long top-line hours wrap to 2 lines on phones (52.75px top line,
   133.75px header), and a 115.375px reserve then drops the hero ~18px (home CLS 0.185). In the shell step, measure the
   widest width where .site-topline is 52.75px tall and, if it wraps at all, uncomment with that width:
   @media (max-width: <WRAP>.98px) { #header-container:empty { min-height: 133.75px; } }
   (KD: 523 = 2 lines, 524 = 1 line). A short top line that never wraps needs nothing. */
/* CTA band body text on the accent = #fff (rgba .78 white fails 4.5:1 on mid-blue accents) */
.cta-content p { color: #fff; }
/* related-dish links on dish pages: tap targets of at least 24px */
.dish-description-content li a { display: inline-block; min-height: 24px; padding-block: 3px; line-height: 1.3; }
body:not(.header-loaded) .breadcrumb-container { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
/* store bar (Dennis PT QA F1): works with 4 cells (template default) and 3 cells (rating dropped).
   <=1080 (2-up): only a LAST 3rd cell spans the full row, so 4 cells = 2 + 2, 3 cells = 2 + 1 full.
   >=1081: 3 cells = 3 columns (no empty quarter); 4 cells keep 4 columns. */
@media (max-width: 1080px) {
  .store-bar .sb-cell:nth-child(3) { grid-column: auto; }
  .store-bar .sb-cell:nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (min-width: 1081px) { .store-bar:not(:has(.sb-cell:nth-child(4))) { grid-template-columns: repeat(3, 1fr); } }

/* FONT-PAIR (one line, the only place a store sets its fonts): replace "grotesk" x3 with barlow or fraunces.
   pizza/burgers/wings/donair = barlow; Indian/Italian family/bakery/fine dining = fraunces; everything else = grotesk.
   Type unclear? Pick one and keep building (decision 18.9). */
:root { --font-display: var(--fp-grotesk-head); --font-body: var(--fp-grotesk-body); --fw-head: var(--fp-grotesk-weight); }

/* ============================================================
   PT-DESIGN-RULES 2026-10-24 (Rakesh 16:57, standing for PT; Atlas 17:30 red-band + <480px calls)
   verify.py check D keys off the "PT-DESIGN-RULES" marker above: keep it.
   1. SPLIT BUTTONS. Markup (pt_design.py writes it):
      <a class="btn|btn-line"><span class="btn__label">Text</span><span class="btn__arrow">arrow-right svg</span></a>
      Primary (.btn) = every ORDER button (orders.iorders.online): accent label, accent darkened ~25% arrow block,
      white text + white arrow-right (never a chevron). Secondary (.btn-line) = every other button: white label,
      thin border, dark text; light-grey arrow block, dark arrow. No gap; 6px radius on the OUTER corners only;
      padding 12px 18px (label) / 12px 14px (arrow); heading font at 600. One primary per section (nav separate).
      White label text must be >= 4.5:1 on the accent: rebrand sets --btn-accent-dark/--btn-accent-hover to
      checked hex values for the store's accent (color-mix below is only the fallback).
   2. RED-BAND VARIANT (Atlas 17:30): on a full-accent band (.menu-band, .cta-band) the primary's label turns
      white with accent text; the arrow block keeps the darkened accent + white arrow.
   3. UNDER 480px the header order button is hidden: the fixed full-width order bar (.order-float), the button
      in the opened menu and the menu toggle stay, so ordering is one tap away and no two primaries show.
   4. NO open/closed badge, no eyebrows/kickers, no 01/02/03 numbering, no icon cards, no watermark,
      no uppercase labels/links, no "See ... ->" arrows (pt_design.py removes the markup; this hides leftovers).
   5. FONTS (Rakesh 2026-10-24 19:34, decision 18.9): one pair per restaurant type, picked on the FONT-PAIR line
      at the top of this file (grotesk | barlow | fraunces). Two styles only: headings/labels at the pair's
      head weight, body 400. Six fonts are banned (decision 18.10, check D).
   ============================================================ */
:root {
  --btn-accent: var(--brand);
  --btn-accent-dark: #235035;   /* rebrand: set the checked hex */
  --btn-accent-hover: #285E3E;  /* rebrand: set the checked hex */
  --btn-sec-line: #C9C9C7;
  --btn-sec-arrow: #E8E8E6;
}
.btn, .btn-line,
.site-nav .nav-extra .btn, .header-cta .btn, .btn.order-float {
  display: inline-flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: none !important;
  overflow: hidden;
  font-family: var(--font-display) !important;
  font-weight: var(--fw-head, 600) !important;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none !important;
  text-decoration: none !important;
  transform: none !important;
  white-space: nowrap;
  vertical-align: middle;
}
.btn::before, .btn::after, .btn-line::before, .btn-line::after { content: none !important; display: none !important; }
.btn .btn__label, .btn-line .btn__label {
  display: flex; align-items: center; justify-content: center; flex: 1 1 auto;
  padding: 12px 18px;
  border-radius: 6px 0 0 6px;
  font-family: var(--font-display) !important;
  font-weight: var(--fw-head, 600) !important;
  transition: background-color .15s ease;
}
.btn .btn__arrow, .btn-line .btn__arrow {
  display: flex !important; align-items: center; justify-content: center; flex: none;
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
}
.btn .btn__arrow .ico, .btn-line .btn__arrow .ico { display: block !important; width: 1em; height: 1em; }
/* primary */
.btn .btn__label { background: var(--btn-accent); color: #fff !important; }
.btn .btn__arrow { background: var(--btn-accent-dark); color: #fff !important; }
.btn:hover .btn__label, .btn:focus-visible .btn__label { background: var(--btn-accent-hover); }
.site-nav .nav-extra .btn, .site-nav .nav-extra .btn * { color: #fff !important; }   /* opened phone menu: never ink on accent */
/* secondary */
.btn-line .btn__label { background: #fff; color: var(--ink) !important; border: 1px solid var(--btn-sec-line); border-right: 0; }
.btn-line .btn__arrow { background: var(--btn-sec-arrow); color: var(--ink) !important; border: 1px solid var(--btn-sec-arrow); }
.btn-line:hover .btn__label, .btn-line:focus-visible .btn__label { border-color: var(--ink); }
/* red-band variant */
.menu-band .btn .btn__label, .cta-band .btn .btn__label { background: #fff; color: var(--btn-accent) !important; }
.menu-band .btn:hover .btn__label, .cta-band .btn:hover .btn__label { background: #f3f3f3; }
.btn:focus-visible, .btn-line:focus-visible { outline: 2px solid var(--focus-ring, #111111); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-ring-halo, #ffffff) !important; }   /* same two-tone ring as style.css (WCAG 1.4.11, kh72c0a5) */
.btn.order-float { justify-content: stretch; }

/* No eyebrows, no numbering, no icon grids, no watermark, no uppercase labels/links */
.kicker, .kicker::before, .ch-no, .step-number, .v-ico { display: none !important; }
.chapter { grid-template-columns: 1fr !important; }
.cat-tile::before, .qa summary::before, .menu-band::after { content: none !important; display: none !important; }
.values-copy { max-width: 46rem; margin-top: 1rem; }
.plate .plate-no, .plate .plate-foot, .chip, .item-desc span, .info-card strong,
#home-hero .cs-subtitle, .cs-subtitle, .cs-topper, .sticker {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#home-hero .cs-subtitle::before, .cs-topper::before { content: none !important; display: none !important; }
@media (max-width: 479px) { .header-cta .btn { display: none !important; } }

/* ---------- PT default type (rule 5): two styles only ---------- */
body { font-family: var(--font-body); font-size: 16px; line-height: 1.4; font-weight: 400; }
p, li, dd, td { font-size: 1rem; line-height: 1.4; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: var(--fw-head, 600); letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); }          /* ~28px */
h3 { font-size: clamp(1.125rem, 1.6vw, 1.25rem); }
body * { font-weight: 400 !important; }
h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
.site-nav a, summary, summary *, .menu-title, .menu-title *, .dropbtn, .qa-ico, .privacy-title {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-head, 600) !important;
}

/* ============================================================
   PT-LAYOUT 2026-10-24 (Rakesh 19:34, decisions 18.13 + 18.14)
   Alternating full-width 50/50 sections: image | heading + ONE sentence + ONE button.
   .pt-split = image left; .pt-split--flip = image right. White base, generous space, no shadows.
   Home order: hero, featured dishes, story (.story.pt-split), menu CTA (.menu-band), gallery
   (.home-gallery), catering (.home-catering), location (.home-location), reviews (.quotes),
   FAQ (.faq), map + hours (.contact-sec). Blocks without store facts are deleted, never faked.
   ============================================================ */
.pt-split { padding-block: clamp(3.5rem, 7vw, 6rem); background: #fff; }
.story.pt-split { background: #fff; }
.pt-split .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.pt-split--flip .pt-split__media { order: 2; }
.pt-split__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--pt-r-img); }
.pt-split__copy h2 { margin: 0 0 0.75rem; }
.pt-split__copy p { max-width: 42ch; margin: 0 0 1.5rem; color: var(--ink); }
.home-catering.pt-split, .home-location.pt-split--flip { background: var(--pt-grey, #f6f6f6); }
@media (max-width: 860px) {
  .pt-split .wrap { grid-template-columns: 1fr; }
  .pt-split--flip .pt-split__media { order: 0; }
}
.home-gallery { padding-block: clamp(3.5rem, 7vw, 6rem); }
.home-gallery h2 { margin: 0 0 1.5rem; }
.home-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.home-gallery__grid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--pt-r-img); }
@media (max-width: 700px) { .home-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }
.contact-sec .menu-btn-wrapper { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; margin-top: 1.25rem; }
.contact-sec .map-frame iframe { display: block; width: 100%; min-height: 360px; border: 0; }
#find-us { padding-top: clamp(3.5rem, 7vw, 6rem); }

/* ============================================================
   PT-MENU 2026-10-24 (Rakesh 19:34, decision 18.15): the full menu in ONE scroll.
   Every category shows under its own heading on every screen size; the sticky category bar
   (side rail on desktop, horizontal bar on phones) only jumps to a heading. No tabs, no dropdown.
   Active category = ink, not accent (accent budget, decision 18.8).
   ============================================================ */
.menu-items .category-header {
  display: block; grid-column: 1 / -1;
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2;
  margin: 1.75rem 0 0.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--pt-line);
  scroll-margin-top: 8rem;
}
.menu-items .category-header:first-child { margin-top: 0; }
.menu-item:hover { transform: none; }
.item-desc { color: var(--pt-ink-2); }
.menu-buttons a.menu-button { display: block; text-decoration: none; color: var(--ink); }
.menu-buttons a.menu-button.active-button, .menu-buttons a.menu-button.active-button:hover { background: var(--ink); color: #fff !important; }
/* 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; }
.mobile-menu-controls {
  display: flex; width: min(var(--max), calc(100% - 2 * var(--pad))); margin: 0 auto 1.25rem; padding: 0;
  position: static; border: 0; background: none;
}
#menu-search {
  flex: 1; font: inherit; font-size: 1rem; padding: 0.7rem 1rem; min-width: 0;
  border: 1px solid var(--btn-sec-line, #c9c9c7); border-radius: 6px; background: #fff; color: var(--ink);
}
#menu-search::placeholder { color: var(--pt-ink-2); }
@media (max-width: 768px) {
  .mobile-menu-controls { position: static; padding: 0; border: 0; background: none; margin-bottom: 0.75rem; }
  .menu-buttons {
    display: flex !important; flex-direction: row; flex: none; gap: 0.4rem;
    position: sticky; top: 4.5rem; z-index: 41; max-height: none; overflow-x: auto; overflow-y: hidden;
    margin: 0 calc(-1 * var(--pad)) 1rem; padding: 0.6rem var(--pad);
    background: #fff; border-bottom: 1px solid var(--pt-line); border-radius: 0; scrollbar-width: none;
  }
  .menu-buttons::-webkit-scrollbar { display: none; }
  .menu-buttons a.menu-button { flex: none; white-space: nowrap; }
  .menu-items .category-header { scroll-margin-top: 9rem; }
}
.info-card:hover { transform: none; }
/* Dennis QA (KD Saskatoon): Fraunces swap wraps the 2 hero buttons at 400-479px (CLS 0.10) - stack them below 480px */
@media (max-width: 479.98px) { .hero-actions { flex-direction: column; align-items: flex-start; } }

/* ===== TASK E (2026-11-14): repeat-defect guards, measured on a fresh PT scaffold ===== */
/* item 0: header fit 901-1199 (brand + 5-6 nav links + Order CTA overflowed 10.9px @901 on the bare shell, 16.2px @1024 on FOI with 6 links) */
@media (min-width: 901px) and (max-width: 1199.98px) { :root .site-header .site-nav a { padding-inline: 0.7rem; } :root .site-header .site-nav { gap: 0.2rem; } }
/* item 3: back-to-top (fixed, 3rem at right 1.4rem) never covers "Powered by iOrders.ca": reserve its width at the end of the legal row
   only where the row reaches the button (0 on wide screens where the wrap margin already clears it) */
:root .foot-legal { padding-right: max(0px, calc(5.5rem - (100vw - 100%) / 2)); }
/* item 4: desktop measure <= 75 characters per line (ruling 11), FOI 1c28456 pattern (Dennis + Brandy PASS) */
@media (min-width: 1000px) { main p, main li, section p, section li, .faq-answer, .qa p, .privacy-desc, .privacy-item li, .lede, .section__description { max-width: 52ch !important; } }
.section__description, .cs-text { margin-inline: auto; }
.text-center p, .center p, .sec-head.center p, .cta-band p, .cta-content p, .hero-full__content p { margin-inline: auto; }
/* Royal faq@360 (ruling 1): the legacy CTA band left a 280px text column at 360; on phones it runs full width (320px at 360) */
@media (max-width: 600px) { :root .cta__container { width: 100%; border-radius: 0; padding-inline: var(--pad); } }
/* item 1: gallery tiles at 390@2 were 1.72-1.91x (one 350px column on phones); two columns on phones keep every tile at <=1.5x
   (tile ~169px at 390 needs >=338px source; the scaffold files are 346-409px, Brandy's packs cut 900px) */
@media (max-width: 560px) { :root .gallery-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } :root .gallery-wall figcaption { padding: 0.55rem 0.7rem; font-size: 0.9rem; } }
.bd-card:has(a:focus-visible) { overflow: visible; }
main section.explore__container:has(a:focus-visible) { overflow-x: visible; }

/* WCAG 2.4.11 focus not obscured (kh76fhg9, Dennis 2026-11-19): at <=768px the fixed Order bar (~66px) and back-to-top
   (bottom 5.4rem, 3rem tall) cover the bottom of the viewport. 1) scroll-padding-bottom makes the browser's own focus scroll
   (and anchor jumps) stop 150px above the bottom edge (80px was not enough). 2) at the very end of the page scroll can't help:
   the footer's last row must end above back-to-top: row bottom = 100vh - 4.5rem body padding - wrap padding;
   back-to-top top = 100vh - 8.4rem -> wrap padding >= 3.9rem; 5rem leaves ~1rem clear. Desktop unchanged (media query). */
@media (max-width: 768px) {
  html { scroll-padding-bottom: 150px; }
  :root .site-footer .wrap { padding-bottom: 5rem; }
  .menu-buttons { scroll-padding-inline: 6px; }
}

/* No-photo hero (Atlas 2026-11-19, kh700fxm; from Elena's Main Track e6d2be6, Emerald Park):
   a .hero-full without a photo sizes to its text. Section padding and the min/vh height go;
   the text keeps its own padding. Photo heroes are unchanged (the :has() guard). BUILD-NOTES rule 31. */
.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); }

/* kh75hh77 PT item 9 (2026-11-20): tap targets >= 24px (WCAG 2.5.8) + clean /menu rows without a description */
/* link lists (FAQ area lists, related links, footer columns): each row is a full-height target, not 17px text */
main :is(ul, ol) > li > a:only-child:not(.btn):not([class*="btn"]) { display: inline-block; min-height: 24px; padding-block: 3px; line-height: 1.3; }
/* a dish with no description: name and price on one line, centred in the card, so the row reads clean next to a card
   that has a description (row heights stay equal for detector a) */
.menu-item:not(:has(.item-desc)) { display: flex; align-items: center; }
.menu-item:not(:has(.item-desc)) .item-details { display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 1rem; }
.menu-item:not(:has(.item-desc)) .item-name { margin-bottom: 0; }
.menu-item:not(:has(.item-desc)) .item-price { margin-bottom: 0; white-space: nowrap; }

/* kh75hh77 PT item 10 / kh72c0a5 (Bun & Barrel dc592a2): focus ring INSET where a clipping parent cuts the outer ring.
   .menu-buttons (scrolling chip bar, padding 0) clips the category chips: same two tones drawn inside the chip
   (#fff 0-2px, --focus-ring line 2-4px, #fff 4-6px). */
.menu-buttons .menu-button:focus-visible {
  outline: 2px solid var(--focus-ring, #111111);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px var(--focus-ring-halo, #ffffff) !important;
}

/* ---------- Card grids >= 300px on EVERY page type (kh75hh77 PT item 6, 2026-11-20; extends rule 32) ----------
   Fixed repeat(N, 1fr) card grids gave 220-299px cards on store pages (more cards, sidebar on /menu).
   From 1024 they auto-fill at min(100%, 300px): cards never drop under 300px and never stretch past one column
   when a store has fewer cards. Stores: never hard-code repeat(N, ...) on a card grid. */
@media (min-width: 1024px) {
  .menu-items,
  .bd-list,
  .food-picks-grid,
  .delivery-areas-grid,
  .how-to-order-steps,
  .packages-grid,
  .values-grid,
  .quote-grid,
  .related-dishes-grid,
  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  }
}
/* 1024-1100: a 1rem gap keeps 3 cards >= 300px on one row (with 1.4rem the third card wrapped to a lone row) */
@media (min-width: 1024px) and (max-width: 1100px) {
  .menu-items, .bd-list, .food-picks-grid, .delivery-areas-grid, .how-to-order-steps, .packages-grid,
  .values-grid, .quote-grid, .related-dishes-grid, .reviews-grid { gap: 1rem; }
}
/* A lone card never stretches full width (from 601): capped at a normal card width, centred */
@media (min-width: 601px) {
  :is(.menu-items, .bd-list, .food-picks-grid, .delivery-areas-grid, .how-to-order-steps, .packages-grid,
      .values-grid, .quote-grid, .related-dishes-grid, .reviews-grid):has(> :only-child) {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
}
/* kh75hh77 PT item 6 gap 1 (Atlas 17:50; synthetic 14-item menu): /menu is at most 2 columns and every .item-details
   is >= 300px. auto-fill 300px gave 3 columns from 1440 (.item-details 259px) and 283px details at 1024 (300px is the
   CARD; the card has 1.3rem side padding + 1px borders). Each column is >= 300px of text + that padding, and >= half the
   row, so the grid never makes a 3rd column; when two don't fit it drops to one. */
@media (min-width: 769px) {
  .menu-items { grid-template-columns: repeat(auto-fill, minmax(max(calc(300px + 2.6rem + 2px), calc((100% - 1.4rem) / 2)), 1fr)); }
}

/* kh75hh77 PT item 6 gap 2 (Atlas 07:05 standing rule; Momo Canteen /momo): a section heading is >= 300px wide or
   stacked. When a store puts text/buttons beside the h2 in .sec-head, the h2 keeps a 300px basis and the rest wraps
   under it instead of squeezing the heading into a narrow column. */
.sec-head { flex-wrap: wrap; }
.sec-head > h2, .sec-head > :has(> h2) { flex: 1 1 min(100%, 300px); min-width: min(100%, 300px); }
/* kh75hh77 PT item 4 (2026-11-20): photo galleries fit ANY photo count, no trailing hole, no empty column.
   Home .home-gallery__grid (from 701px) and /our-food .gallery-wall (from 901px) use 12 tracks: rows of 3 (span 4).
   Count leaves 1 over (4, 7, 10 ...): the last 4 photos are a row of 4 (span 3). Count leaves 2 over (2, 5, 8 ...): the
   last 2 photos are a row of 2 (span 6). One photo = one centred tile. Every tile in a row has the same width, so rows
   stay even. Phones/tablets (2 columns): an odd last photo spans both columns as a 2:1 tile. */
@media (min-width: 701px) {
  :root .home-gallery__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .home-gallery__grid > * { grid-column: span 4; }
  .home-gallery__grid:has(> :nth-child(3n+4):last-child) > :nth-last-child(-n+4) { grid-column: span 3; }
  .home-gallery__grid:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2) { grid-column: span 6; }
  .home-gallery__grid:has(> :only-child) > * { grid-column: 4 / span 6; }
}
@media (max-width: 700px) {
  .home-gallery__grid:has(> :nth-child(2n+1):last-child) > :last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}
@media (min-width: 901px) {
  :root .gallery-wall { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .gallery-wall > * { grid-column: span 4; }
  .gallery-wall:has(> :nth-child(3n+4):last-child) > :nth-last-child(-n+4) { grid-column: span 3; }
  .gallery-wall:has(> :nth-child(3n+2):last-child) > :nth-last-child(-n+2) { grid-column: span 6; }
  .gallery-wall:has(> :only-child) > * { grid-column: 4 / span 6; }
}
@media (max-width: 900px) {
  .gallery-wall:has(> :nth-child(2n+1):last-child) > :last-child { grid-column: 1 / -1; }
  .gallery-wall:has(> :nth-child(2n+1):last-child) > :last-child img { aspect-ratio: 2 / 1; }
}

/* kh75hh77 PT item 5 (2026-11-20): phone hero safe-area crop + gentle zoom.
   Detector e (390@2, cache off) measured slide-1-m 900x1200 in a 390x831 box: crop 1.6, Ken Burns zoom 1.14,
   upscale x zoom 1.58 (> 1.5). On phones the photo now covers ONLY the headline block (grid row 1); the store bar sits
   below it on a solid dark band (row 2, same white text), so the photo box is close to the 3:4 phone file
   (crop <= 1.25) and Ken Burns is capped at 1.05. Tablets/desktop unchanged. */
@media (max-width: 600px) {
  .hero-full:has(.hero-full__bg img) { display: grid; grid-template-rows: auto auto; padding-block: 0; min-height: 0; }
  .hero-full:has(.hero-full__bg img) > .hero-full__bg,
  .hero-full:has(.hero-full__bg img)::before { grid-row: 1 / 2; grid-column: 1 / -1; }   /* abspos: an auto end line = the container edge */
  /* min-height 108vw: the photo box is never wider than 0.926 (= 3:4 x 1.25), so the 3:4 phone file crops <= 1.25 at
     every phone width up to 600; copy sits at the bottom of the photo */
  .hero-full:has(.hero-full__bg img) > .hero-full__content { grid-row: 1; padding-block: calc(var(--header-h, 4.5rem) + 4rem) 2rem; margin-block: 0; min-height: max(108vw, min(150vw, 640px)); justify-content: flex-end; }
  .hero-full:has(.hero-full__bg img) > .hero-full__foot { grid-row: 2; background: #141414; padding-block: 1.25rem; width: 100%; max-width: none; padding-inline: var(--pad); }
  .hero-full__bg img { object-position: center 40%; }   /* phone safe area: keep the plate's centre in the visible box */
  .hero-slides.kb-on .kb-1 img { animation-name: heroKbM1; }
  .hero-slides.kb-on .kb-2 img { animation-name: heroKbM2; }
  .hero-slides.kb-on .kb-3 img { animation-name: heroKbM3; }
  .hero-slides.kb-on .kb-4 img { animation-name: heroKbM4; }
  .hero-slides.kb-on .kb-5 img { animation-name: heroKbM5; }
  .hero-slides:not(.kb-on) .hero-slide img { transform: scale(1.01); }
}
@keyframes heroKbM1 { from { transform: scale(1.01); } to { transform: scale(1.05) translate3d(-1%, -0.5%, 0); } }
@keyframes heroKbM2 { from { transform: scale(1.05) translate3d(1%, 0, 0); } to { transform: scale(1.01); } }
@keyframes heroKbM3 { from { transform: scale(1.04) translate3d(-1%, 0, 0); } to { transform: scale(1.04) translate3d(1%, 0, 0); } }
@keyframes heroKbM4 { from { transform: scale(1.01) translate3d(0, 0.5%, 0); } to { transform: scale(1.05) translate3d(0.5%, -0.5%, 0); } }
@keyframes heroKbM5 { from { transform: scale(1.05) translate3d(0, -0.5%, 0); } to { transform: scale(1.01); } }

/* ---------- Few-card carousel: 1-2 plates are centred (kh75hh77 PT item 2, 2026-11-20; completes rule 30) ----------
   Rule 30 already sizes 1-3 plates to the row and hides the arrows / skips autoplay when every card fits;
   1-2 plates still sat on the left with an empty slot beside them. From 601 they are centred. */
@media (min-width: 601px) {
  .plates-track:not(:has(> .plate:nth-child(3))) { justify-content: center; }
}

/* kh75hh77 PT item 3 (2026-11-20, Rakesh 18:32): no-photo fallback. A card/slot without a usable photo shows a flat
   brand-tint panel with the dish/place name at the SAME aspect box as the image slot: no broken-image icon, no gap.
   Builders write <div class="no-photo" role="img" aria-label="Name"><span>Name</span></div> where the photo would go;
   components.js also swaps in the panel when a card image fails to load or a card has no image at all. */
.no-photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  background: color-mix(in srgb, var(--brand) 12%, #f4f2ef);
  color: var(--ink);
  border-radius: var(--pt-r-img, 12px);
  text-align: center;
}
.no-photo span { font-family: var(--font-display, inherit); font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.25rem); line-height: 1.25; max-width: 18ch; overflow-wrap: anywhere; }
.plate .no-photo { aspect-ratio: 1 / 1; margin: 0 0 0.75rem; }
.bd-img .no-photo { aspect-ratio: 16 / 11; border-radius: 0; }
.dish-hero-image .no-photo { aspect-ratio: 4 / 3; border-radius: var(--r-xl, var(--pt-r-img, 12px)); }
.explore__image .no-photo { aspect-ratio: 500 / 295; border-radius: var(--r-xl, var(--pt-r-img, 12px)); }

/* PT item 2, below 1024 (Wilson, Atlas 18:38): 1-3 plates are a STATIC block, never a scroller: no arrows, no autoplay
   (script.js hides both once every card fits), no peek. 601-1023: one centred row (3 or 2 equal columns, 1 plate
   capped at 420px); phones: the plates stack, one full-width card each. 4+ plates keep the carousel. */
@media (max-width: 1023px) {
  .plates-track:not(:has(> .plate:nth-child(4))) {
    grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; justify-content: center;
  }
}
@media (min-width: 601px) and (max-width: 1023px) {
  .plates-track:not(:has(> .plate:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plates-track:not(:has(> .plate:nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plates-track:has(> .plate:only-child) { grid-template-columns: minmax(0, 420px); }
}
@media (max-width: 600px) {
  .plates-track:not(:has(> .plate:nth-child(4))) { grid-template-columns: minmax(0, 1fr); }
}

/* kh73h85c item 4 (London Shawarma Brandy F1; Atlas 2026-11-20): the header is OPAQUE in every state. It was
   rgba(255,255,255,.92) (.98 <=768), so page content showed through when scrolled and the logo measured 4.47:1.
   A store with a dark header sets --header-bg to an OPAQUE colour; preready's header check fails any alpha < 1. */
.site-header,
.site-header.scrolled,
body:has(.hero-full) .site-header:not(.scrolled) { background: var(--header-bg, #fff); }

/* kh73h85c item 2 (London Shawarma Dennis F2): body copy never runs past ~75 characters a line. The template's own
   paragraphs already measure <= 66 chars at 1280-1920 with long store copy; this cap keeps store edits there too. */
main p { max-width: 75ch; }

/* kh73h85c item 3/4 (London Shawarma Dennis F3: review name rendered Barlow 400, expected 700): the home review card
   name is a display-font label, so it takes the pair's heading weight like h1-h6 and nav (rule 5 "two styles only").
   Before, `body * { font-weight: 400 !important }` left it at computed 400 while it rendered the display face. */
.quote-card .q-by strong { font-family: var(--font-display) !important; font-weight: var(--fw-head, 600) !important; }
