/* ============================================================
   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"); }
}
/* pre-READY smalltext: labels on light cards/hover fills at >=4.5:1 (were 3.22-3.72) */
:root .info-card strong, :root .dish-location-info h4, :root .rating-count, :root .location-box__list strong { color: #3f3d3b; }
/* home hero kicker on the storefront photo (3.5:1 on the sky): dark chip behind the label */
:root .hero-full .kicker--light { background: rgb(20 18 17 / 0.62); padding: 0.2em 0.7em; border-radius: 999px; }
/* home FAQ area list: one column until the column is >=300px (r2gate cols 769-1279) */
@media (max-width: 1279px) { .qa .qa-body ul:has(li:nth-child(8)) { columns: 1; } }
.page-hero--split .ph-img picture { display: block; width: 100%; height: 100%; }
/* rule 58 floors on SB's small text: labels >= 14px, sentences/buttons >= 16px */
:root .breadcrumb, :root .breadcrumb a, :root .breadcrumb span, :root .chip, :root .cs-topper, :root .dish-detail, :root .dish-location-info h4,
:root .foot-legal, :root .foot-legal a, :root .foot-legal span, :root .gallery-wall figcaption span, :root .info-card strong, :root .kicker,
:root .location-box__list strong, :root .plate .plate-foot, :root .plate .plate-no, :root .rating-count, :root .site-topline, :root .site-topline span,
:root .sticker, :root .btn-small { font-size: max(var(--fs-label), 1em); }
:root .item-desc, :root .item-desc span, :root .sb-body span, :root .header-cta .btn, :root .topic-item-desc, :root .dish-location-hours li { font-size: max(var(--fs-body), 1em); line-height: var(--lh-body); }
:root .hero-full__tag, :root .plate p, :root .btn-line,
:root #footer-container p, :root #footer-container li, :root #footer-container li a, :root #footer-container li span, :root #footer-container address { font-size: max(var(--fs-body), 1em); line-height: var(--lh-body); }
:root main p, :root main li, :root .lede, :root .lede a, :root .dish-description, :root .btn-secondary, :root .menu-button { font-size: max(var(--fs-body), 1em); line-height: var(--lh-body); }
/* r2gate cols: home plates carousel keeps every card's text column >= 300px at 769-1279 (3-up gave 256px at 1024) */
@media (min-width: 769px) { .plates-track { grid-auto-columns: max(326px, calc((100% - 2.5rem) / 3)); } }
/* img width/height attributes (real file sizes, for CLS) must not set the painted height: the template's
   aspect-ratio / height rules decide it. :where() = 0 specificity, so any template height rule still wins. */
:where(main img[height]) { height: auto; }
.food-topic-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; }
/* cols: plates carousel card min width (template rule wins without :root) */
@media (min-width: 769px) { :root .plates-track { grid-auto-columns: max(330px, calc((100% - 2.5rem) / 3)); } }
/* tap target: home FAQ link lists, each link >= 24px tall */
.qa .qa-body li a { display: inline-block; padding-block: 0.15rem; }

/* ===== Dennis QA round 1 @ 9123494 (2026-11-27) ===== */
/* F1: place pages, phones - the one-line Order button (383px) widened the single grid column past a 320-374px container */
@media (max-width: 768px) {
  .explore__container { grid-template-columns: minmax(0, 1fr); }
  .explore__container > * { min-width: 0; }
  .explore__btn .btn { white-space: normal; max-width: 100%; text-align: center; }
}
/* F2: transparent header over the hero photo - current page link white + pink underline (pink text was 3.35-4.3:1 on the photo) */
body:has(.hero-full) .site-header:not(.scrolled) .site-nav a.active,
body:has(.page-hero) .site-header:not(.scrolled) .site-nav a.active,
body:has(#home-hero) .site-header:not(.scrolled) .site-nav a.active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent-on-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
/* F4: a lone "From the menu" card keeps normal card width, centred */
.related-dishes-grid:has(> .plate:only-child) { grid-template-columns: minmax(0, 24rem); justify-content: center; }
/* F5: /menu Categories button 16px on phones */
.dropbtn { font-size: 1rem; }
/* F3 speed: the first-screen hero shows at once (it waited for JS + a 1.3s fade, which held the LCP heading ~2-4 s);
   reveals further down the page are unchanged */
:is(.hero-full__content, .page-hero [data-reveal], .page-hero[data-reveal])[data-reveal] { opacity: 1; transform: none; transition: none; }
:is(.hero-full__content, .page-hero [data-reveal], .page-hero[data-reveal])[data-reveal] :is(h1, h2) {
  transform: none; transition: none; background: none; -webkit-text-fill-color: var(--wipe-ink, currentColor);
}
.dish-detail .ico { flex: none; vertical-align: -0.2em; }
/* F3 speed: split heroes paint their own .ph-img picture; the section's CSS photo under it was a 2nd hidden download and became the /menu LCP */
.page-hero--split, .page-hero.page-hero--split { background-image: none; }
/* Dennis R1 item 6: hero info-strip labels sit on the photo (bright sign on phones); template white + a soft dark halo keeps them >=4.5:1 */
#home-top .sb-cell strong, #home-top .sb-body span { text-shadow: 0 0 2px rgba(0,0,0,.85), 0 1px 6px rgba(0,0,0,.7); }
