/* The meal history (B_Historique): member tabs and meals, newest first. */
.history-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  background: var(--color-ochre);
  border-radius: var(--radius-pill);
}

.history-tabs__tab {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-height: var(--target-min);
  padding: 0 var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--text-button);
  color: var(--color-ink);
}

.history-tabs__tab:hover { color: var(--color-ink); }

.history-tabs__tab[aria-current="true"] {
  background: var(--color-ink);
  color: var(--color-white);
  font-weight: 600;
}

.history__readonly,
.history__note,
.history__empty {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-muted);
}

/* Sits closer to the tabs it explains than the page's gap. */
.history__readonly { margin-top: calc(-1 * var(--space-md)); }

.history {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history__meal {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-ochre);
}

.history__day {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.history__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.history__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-title);
  font-size: var(--title-row);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.history__name a,
.history__name a:hover { color: var(--color-ink); }

.history__verdict {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-yellow);
  font-size: var(--text-sm);
  font-weight: 600;
}

.history__word { font-size: var(--text-button); }

.history__also {
  font-size: var(--text-sm);
  color: var(--color-muted);
}
