/* The plan dashboard's side column (contract stylesheet: flat single-class
   rules on ui/tokens.css). Components::CoverageStrip: one small square per
   week of a cycle, planned in the good tone, drafting in the caution tone,
   unplanned an empty outline. Components Views::PlanDashboards::DirectionRow:
   four tiles previewing Analytics::DirectionReport, each row a label, the
   verb of the headline it is part of (an empty cell when none), a sparkline
   or count and the change. Views::PlanDashboards::SuggestionsModal draws from
   the kit and keeps three rules of its own, the last of this file:
   .suggestion-section, .suggestion-title and .suggestion-note. */
.coverage-strip {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.coverage-cell {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.coverage-cell-planned {
  background: var(--good);
}

.coverage-cell-drafting {
  background: var(--caution);
}

.coverage-cell-unplanned {
  background: transparent;
  border: var(--line-width) solid var(--line);
}

/* Columns inside the Direction panel, not cards of their own: as many as
   its column has room for, one in the dashboard's side column. */
.plan-direction {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--space-4);
}

.plan-direction-tile {
  box-sizing: border-box;
  min-width: 0;
  color: var(--ink);
}

.plan-direction-tile-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
}

.plan-direction-tile-link {
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--accent-ink);
  white-space: nowrap;
}

.plan-direction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: var(--space-2);
  padding: 0.125rem 0;
  font-size: var(--text-xs);
}

.plan-direction-item-label {
  /* A grid item's min-width is auto, so without this the label widens
     its track instead of truncating. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty for a row no headline names, so the columns line up. */
.plan-direction-verb {
  min-width: 0;
}

.plan-direction-item-count {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.plan-direction-delta {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* A share that rose or fell is neither good nor bad on its own: the arrow
   says which way, in the text's own ink, never a load colour. */
.plan-direction-delta-up,
.plan-direction-delta-down {
  color: var(--ink);
}

.plan-direction-delta-flat {
  color: var(--ink-muted);
}

.plan-direction-foot {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin: var(--space-1) 0 0;
  padding-top: var(--space-1);
  border-top: var(--line-width) solid var(--line);
}

/* Views::PlanDashboards::SuggestionsModal: the kit has no heading for a
   section of a modal, nor a stack that keeps a section's own parts closer
   than the sections are to each other. A section is a rule, room above it
   and its parts --space-2 apart; its title reads a step above the body. */
.suggestion-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: var(--line-width) solid var(--line);
}

.suggestion-title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.suggestion-note {
  font-size: var(--text-sm);
}
