/* E1 « Accueil » (B_Main): header, the dish cards by section and the cookbook
   block, whose field is E4's. */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-header__brand {
  font-family: var(--font-title);
  font-size: 1.625rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-blue);
}

/* Two classes, to win over .avatar's size in profile.css, loaded after. */
.home-header .home-header__profile {
  width: var(--target-min);
  height: var(--target-min);
  font-size: var(--text-button);
  color: var(--color-ink);
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* An eyebrow, not a title. */
.home-section__title {
  font-family: var(--font-text);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.home-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dish-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  color: var(--color-ink);
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow-wrap: anywhere;
}

.dish-card:hover { color: var(--color-ink); }

.dish-card__date,
.dish-card__meta,
.home-empty {
  font-size: var(--text-md);
  color: var(--color-muted);
}

.dish-card__title {
  font-family: var(--font-title);
  font-size: var(--title-section);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.dish-card__prep {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--color-yellow);
  background: var(--color-ink);
  border-radius: var(--radius-control);
}

.dish-card__prep svg {
  flex: none;
  margin-top: 1px;
}

.dish-card__shopping {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-blue);
}

/* Another member's dish: outlined, not a card of one's own. */
.dish-card--other {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 14px var(--space-lg);
  background: transparent;
  border: 2px dashed var(--color-ink);
}

.dish-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dish-card--other .dish-card__title { font-size: 1.1875rem; }

.dish-card__readonly {
  flex: none;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.home-cookbook {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
}

.home-cookbook h2 { font-size: var(--title-block); }

.home-cookbook__count {
  font-size: var(--text-md);
  font-weight: 500;
}
