/* ============================================================
   CUSTOM — Per-store overrides for Late Night Go-To (Winnipeg)
   Loaded last, so it wins over theme.css and style.css.
   ============================================================ */

/* ------------------------------------------------------------
   FAQ internal links
   The base rule is `a { color: inherit; text-decoration: none }`,
   which left every dish / neighbourhood / service link inside the
   FAQ answers looking like plain body copy. These are the site's
   main internal-link surface, so they get a real link treatment:
   brand colour, offset underline, and clear hover/focus states.
   ------------------------------------------------------------ */

.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) 40%, 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;
  text-decoration-thickness: 2px;
}

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

/* Keep the answer column readable now that lists carry links. */
.qa .qa-body li {
  line-height: 1.55;
}

/* ------------------------------------------------------------
   FAQ link lists
   `.qa-links` = a list whose items are primarily links.
   `--areas`   = the 30-neighbourhood delivery list, laid out as a
                 responsive chip grid instead of one long column.
   ------------------------------------------------------------ */

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

.qa .qa-body ul.qa-links--areas li {
  margin-bottom: 0;
}

.qa .qa-body ul.qa-links--areas a {
  display: block;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* The dish list keeps its bullets — each line is "link — description" —
   but gets a little more breathing room between rows. */
.qa .qa-body ul.qa-links--dishes li {
  margin-bottom: 0.45rem;
}

/* Answer column is wider where a link grid needs the room. */
.qa .qa-body:has(ul.qa-links--areas) {
  max-width: 100%;
}

@media (max-width: 520px) {
  .qa .qa-body ul.qa-links--areas {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  }
}
