/* Topic pages (tags/dishes/*): feed dish list. Linked only from the 5 topic pages. */
.topic-menu .topic-group-title {
  margin: 2rem 0 1rem;
}
.topic-menu .topic-group-count {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}
.topic-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr));
  gap: 1rem;
}
.topic-item {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  line-height: 1.5;
}
.topic-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.topic-item-name {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  overflow-wrap: anywhere;
}
.topic-item-price {
  flex: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--chili);
  white-space: nowrap;
}
.dish-description-content .topic-item-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.35rem 0 0;
  max-width: none;
}
.topic-links {
  margin-top: 1.5rem;
}
.related-dishes-container .plate p {
  font-size: 1rem;
  line-height: 1.5;
}
.related-dishes-container .plate .plate-foot {
  font-size: 0.875rem;
}

/* narrow gate (ruling 1): every text block >= 300px wide at 360-414 */
@media (max-width: 480px) {
  .topic-item { padding: 0.9rem 0.75rem; }
  .dish-hero .dish-hero-container { padding-left: 12px; padding-right: 12px; }
  .section__container.dish-hero, .section__container.dish-description-container { width: calc(100% - 24px); }
}
@media (max-width: 480px) {
  .dish-description-content { padding-left: 0; padding-right: 0; }
  /* boat-set hero file is 426x640 (smaller than the other 533x800 heroes): keep it <=1.5x at 390@2 */
  .dish-hero-image img[src*="large-boat-set-page"] { max-width: 284px; margin-inline: auto; display: block; }
}
