/* A repeat warning laid out to be read (Components::RepeatSaid): the
   headline and its note on one line, then each day on its own line, the
   day in a column so the sessions line up. On a tone it sits on that
   warning's ground. */

.repeat-said {
  display: grid;
  gap: var(--space-1);
  font-size: var(--text-sm);
}

.repeat-said-caution {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--caution-soft);
  color: var(--caution-ink);
}

.repeat-said-danger {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: var(--danger-ink);
}

.repeat-said-severe {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--severe);
  color: var(--ink-on-accent);
}

.repeat-said-quiet {
  color: var(--ink-muted);
}

.repeat-said-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
}

.repeat-said-headline {
  font-weight: 600;
}

.repeat-said-note {
  font-size: var(--text-xs);
  opacity: 0.85;
}

.repeat-said-lines {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.repeat-said-line {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--space-2);
}

.repeat-said-day-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.repeat-said-day-link:hover {
  text-decoration-style: solid;
}

.repeat-said-day {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* A line that is not a day (a muscle's movements) runs the full width. */
.repeat-said-line-whole {
  display: block;
}

/* A day's sessions, one under another, so each can show its own state. */
.repeat-said-sessions {
  display: grid;
  justify-items: start;
  gap: 2px;
}

/* A long name's second line hangs in, so two sessions never read as one
   name that wrapped. */
.repeat-said-session {
  padding-inline-start: var(--space-2);
  text-indent: calc(-1 * var(--space-2));
}

/* A session that is not scheduled work wears the outline its tile wears in
   the planner (planner-day-sequence-item, the lanes' legend): dashed for a
   planned block, which may never be built, solid for a draft. The outline
   is drawn in the text's own ink so it holds on every warning ground, and
   the negative margin keeps the name on the column's edge. 1px is a border
   width, not a spacing token. */
.repeat-said-session-planned {
  margin-inline-start: calc(-1 * (var(--space-1) + 1px));
  padding: 0 var(--space-1);
  border: 1px dashed currentColor;
  text-indent: 0;
  border-radius: var(--radius-sm);
}

.repeat-said-session-draft {
  margin-inline-start: calc(-1 * (var(--space-1) + 1px));
  padding: 0 var(--space-1);
  border: 1px solid currentColor;
  text-indent: 0;
  border-radius: var(--radius-sm);
}

/* The state in a word, after the session's name. */
.repeat-said-kind {
  font-size: var(--text-xs);
  font-weight: 600;
}
