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

/* our-food.html — dish names are semantic <h3> headings inside the
   gallery captions. This rule keeps their rendering byte-identical to
   the previous plain-text captions (no visual change). */
.gallery-wall figcaption h3 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  color: inherit;
}

/* ============================================================
   HOME FAQ — internal link styling
   The global reset sets `a { color: inherit; text-decoration:
   none }`, which left the FAQ's internal links to the /tags
   pages looking like plain body text. These rules make every
   FAQ link read and behave like a link, so both readers and
   crawlers can follow the internal link graph out to the
   neighbourhood, dish and service pages.
   ============================================================ */

/* ---- Base: any link inside an FAQ answer ---- */
.qa .qa-body a {
  color: var(--chili-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--chili) 45%, transparent);
  border-radius: 0.2rem;
  transition: color 0.18s ease, text-decoration-color 0.18s ease,
    background-color 0.18s ease;
}

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

.qa .qa-body a:focus-visible {
  outline: 2px solid var(--chili);
  outline-offset: 2px;
  text-decoration: none;
}

/* ---- Delivery neighbourhoods: 22 links as a compact chip grid ----
   The 58ch measure that keeps prose readable is too narrow for a
   22-item chip grid, so answers containing one get the full column. */
.qa .qa-body:has(.qa-arealist),
.qa .qa-body:has(.qa-dishlist) {
  max-width: none;
}

.qa .qa-body ul.qa-arealist {
  list-style: none;
  padding-left: 0;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.45rem;
}

.qa .qa-body ul.qa-arealist li {
  margin-bottom: 0;
  min-width: 0;
}

.qa .qa-body ul.qa-arealist a {
  display: block;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qa .qa-body ul.qa-arealist a:hover,
.qa .qa-body ul.qa-arealist a:focus-visible {
  background: var(--chili-soft);
  border-color: var(--chili);
  color: var(--chili-dark);
  text-decoration: none;
}

/* ---- Popular dishes: link + description on one row ---- */
.qa .qa-body ul.qa-dishlist {
  list-style: none;
  padding-left: 0;
  margin-top: 0.85rem;
  display: grid;
  gap: 0.15rem;
}

.qa .qa-body ul.qa-dishlist li {
  margin-bottom: 0;
  padding: 0.42rem 0 0.42rem 0.95rem;
  position: relative;
  border-bottom: 1px solid
    color-mix(in srgb, var(--line) 55%, transparent);
}

.qa .qa-body ul.qa-dishlist li:last-child {
  border-bottom: 0;
}

.qa .qa-body ul.qa-dishlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--chili);
}

.qa .qa-body ul.qa-dishlist a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, var(--chili) 40%, transparent);
}

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

@media (max-width: 480px) {
  .qa .qa-body ul.qa-arealist {
    grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
  }
}
