/* Page layout, group a (home, topic, search, ingredient) — tokens only. Phone = up to 720 px. */

/* home */
.a-hero { display: flex; flex-direction: column; gap: var(--space-4); max-width: 760px; }
.a-hform { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: 0; }
.a-hform .a-grow { flex: 1 1 420px; }
.a-hform .a-tall { min-height: 52px; }
.a-sec { display: flex; flex-direction: column; gap: var(--space-4); }
.a-h2big { margin: 0; font-size: 28px; line-height: 34px; font-weight: 500; }
.a-topic { padding: var(--space-4) var(--space-5); }
.a-topic__name { font-size: 22px; line-height: 28px; font-weight: 500; }
.a-topic__count { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.a-robot { padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); gap: var(--space-4); }
.a-robot--phone { padding: var(--space-3) var(--space-4); }

/* topic / search / ingredient */
.a-intro { display: flex; flex-direction: column; gap: var(--space-3); max-width: 760px; }
.a-head { display: flex; flex-direction: column; gap: var(--space-2); max-width: 760px; }
.a-ings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.a-ing__name { font-size: 17px; line-height: 24px; font-weight: 600; }
.a-ing__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.a-filters { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.a-filters__set { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.a-filters__count { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.a-filter-label { margin-right: var(--space-1); }
.a-scroll { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-1); }
.a-scroll > * { flex: none; }
.a-hidden { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--bg-muted); border-radius: var(--radius-sm); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.a-hidden__card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-raised); color: var(--ink); font-size: 15px; line-height: 22px; }
.a-hidden__img { width: 96px; height: 96px; border-radius: var(--radius-sm); background: var(--bg-muted); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; line-height: 16px; color: var(--ink-muted); padding: var(--space-2); box-sizing: border-box; }
.a-more { display: flex; justify-content: center; align-items: center; gap: var(--space-4); padding-top: var(--space-3); }
.a-ink { font-weight: 500; color: var(--ink); }
.a-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.a-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a-tbl { font-size: 15px; line-height: 22px; }
.a-tbl td { border-top: 1px solid var(--line); }
.a-tbl tbody tr { border-top: 0; }
.a-ttile__name { font-size: 17px; line-height: 24px; font-weight: 600; }
.a-ttile__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.a-ttile { gap: 2px; background: transparent; }
.a-limits-row { display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .a-hero { gap: var(--space-3); }
  .a-hform--phone { flex-direction: column !important; }
  .a-hform--phone .a-grow { flex: none; }
  .a-hform--phone .a-tall { min-height: 48px; }
  .a-sec { gap: var(--space-3); }
  .a-h2big { font-size: 22px; line-height: 28px; }
  .a-topics { gap: var(--space-3); }
  .a-topic { padding: var(--space-3) var(--space-4); gap: 2px; background: transparent; }
  .a-topic__name { font-size: 17px; line-height: 24px; font-weight: 600; }
  .a-topic__count { font-size: 12px; line-height: 16px; }
  .a-desk-text { display: none; }

  .a-intro, .a-head { gap: var(--space-2); }
  .a-intro .title, .a-head .title { font-size: 28px; line-height: 34px; }
  .a-intro > p, .a-head > p { font-size: 13px; line-height: 18px; }
  .a-ing { flex: none; width: 150px; gap: 2px; padding: var(--space-3); box-sizing: border-box; }
  .a-ing__name { font-size: 15px; line-height: 22px; }
  .a-ing__meta { font-size: 12px; line-height: 16px; }
  .a-cards, .a-cards--3 { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .a-hidden { gap: var(--space-2); }
  .a-hidden__card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); }
  .a-more { flex-direction: column; gap: var(--space-2); padding-top: var(--space-2); }
  .a-tbl { font-size: 13px; line-height: 18px; }
  .a-tbl th, .a-tbl td { padding: var(--space-2) var(--space-3) !important; }
  .a-h2m { font-size: 20px; line-height: 26px; }
  .a-ttile { padding: var(--space-3); }
  .a-ttile__name { font-size: 15px; line-height: 22px; }
  .a-ttile__meta { font-size: 12px; line-height: 16px; }
  .a-sec-m { gap: var(--space-2) !important; }
}
.a-claims { padding-left: 20px; }
@media (max-width: 720px) { .a-claims { font-size: 13px; line-height: 18px; } }
.a-tbl td.r { white-space: nowrap; }
