/*
 * Entries: regulars, saved meals and what's added to a list. The same compact rows
 * as the Shopping list, with a mint badge where the check would be. Each
 * row opens to its own panel.
 */
@layer components {
  .regular-list + .regular-list__note + .regular-new { margin-top: var(--space-6); }
  .regular-new + .empty-state { margin-top: var(--space-5); }

  .entry { padding-inline: var(--space-1) var(--space-2); }
  .entry + .entry { border-top: 1px solid var(--line); }

  .entry__summary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 60px;
    list-style: none;
    cursor: pointer;
  }
  .entry__summary::-webkit-details-marker { display: none; }
  .entry__body[open] .shopping-item__more svg { transform: rotate(90deg); }

  .entry__badge { display: grid; place-items: center; flex: none; width: var(--touch); }
  .entry__badge svg {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 50%;
    background: var(--mint-soft);
    color: var(--leaf);
  }

  .entry__text { display: grid; flex: 1; min-width: 0; padding-block: var(--space-2); }
  .entry__name { font-weight: 700; line-height: 1.3; }
  .entry__when { color: var(--muted); font-size: var(--text-sm); font-weight: 600; }

  .entry__panel {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-1) var(--space-2) var(--space-5) calc(var(--touch) + var(--space-1));
  }
  @media (max-width: 559px) { .entry__panel { padding-left: var(--space-2); } }

  .regular-list__note { margin: var(--space-3) var(--space-2) 0; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }

  /* The small repeat mark beside a regular's name on the Shopping list. */
  .shopping-item__regular { display: inline-grid; vertical-align: -2px; margin-left: var(--space-2); color: var(--leaf); }
  .shopping-item__regular svg { width: 15px; height: 15px; stroke-width: 2.4; }
}
