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

/* Layout for the location / delivery boxes now lives in style.css
   (Lantern template). Keep only store-specific tweaks below. */

/* ---------- home FAQ: internal links to tag pages ---------- */
.qa .qa-body a {
  color: var(--chili);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--chili) 35%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.qa .qa-body a:hover,
.qa .qa-body a:focus-visible {
  color: var(--chili-dark);
  text-decoration-color: currentColor;
}

/* long neighbourhood / dish lists (8+ items) read better in two columns */
.qa .qa-body ul:has(li:nth-child(8)) {
  columns: 2;
  column-gap: 1.5rem;
}

.qa .qa-body ul:has(li:nth-child(8)) li {
  break-inside: avoid;
}

@media (max-width: 560px) {
  .qa .qa-body ul:has(li:nth-child(8)) {
    columns: 1;
  }
}

/* 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 SB scaffold ===== */
/* item 3: back-to-top (fixed 3rem at right 1.4rem) covered "Powered by iOrders.ca" at 390/768/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), measured at 360-1440 on the fresh scaffold */
:root #home-hero .cs-subtitle { color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .5); }   /* accent-on-dark over the hero photo 3.41-4.0:1 */
:root .rating-count, :root .info-card strong { color: color-mix(in srgb, var(--muted) 70%, #000); }   /* muted grey/gold on cream/grey 2.7-4.05:1 */

/* ===== Amai Sushi store-level (8019ede SB) =====
   Phone dish/topic hero box (Brandy HANDOFF row 16): portrait 533x800 sources, box 294/440 capped at 480px tall */
@media (max-width: 767px) {
  .dish-hero-image img { aspect-ratio: 294 / 440; max-height: 480px; height: auto; object-fit: cover; }
}

/* ===== Rule 58 type (store file: SB gap): 16px reading floor, labels 14px,
   body line-height 1.5, header nav 16px/600. Store-level add (SB ships smaller). ===== */
:root { --fs-body: 1rem; --fs-label: 0.875rem; --lh-body: 1.5; }
body { font-size: var(--fs-body); line-height: var(--lh-body); }
main p, main li, main dd, main td, .section__description, footer p, footer li { font-size: max(var(--fs-body), 1em); line-height: var(--lh-body); }
.btn, .cs-button-solid, button { font-size: max(var(--fs-body), 1em); }
/* header nav: 16px / 600 / -0.2px / lh 1.38 (rule 58). Cut the gap and padding to fit, never the size */
:root .site-header .site-nav a { font-size: 1rem; font-weight: 600; letter-spacing: -0.2px; line-height: 1.38; text-transform: none; }
@media (min-width: 901px) and (max-width: 1180px) {
  :root .site-header .site-nav a { padding: 0.6rem 0.45rem; }
}
/* CSS photo bands: template Shaba backgrounds -> Brandy pack files (phone crops <=767px) */
.page-hero { background: var(--ink) url("assets/backgrounds/about-header-tekkadon.webp") center / cover no-repeat; }
#home-hero { background: var(--ink) url("assets/backgrounds/place-header-chopped-scallop-nigiri.webp") center / cover no-repeat; }
@media (max-width: 767px) {
  .page-hero { background-image: url("assets/backgrounds/about-header-tekkadon-m.webp"); }
  #home-hero { background-image: url("assets/backgrounds/place-header-chopped-scallop-nigiri-m.webp"); }
}
