/* The small pieces inside the mockup: tags, the search pill, note cards,
   the open note and the to-do boxes. */

.tag {
  display: inline-block;
  padding: 0 0.45rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  font-weight: 600;
}

.app-search {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: var(--space-2);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.app-search .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.note {
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* The selected note has a colored line on its left side. */
.note.is-active {
  background: var(--color-bg-alt);
  box-shadow: inset 2px 0 0 var(--color-brand);
}

.note-title {
  font-weight: 700;
}

/* Long text is cut with "..." so every note card stays the same height. */
.note-text,
.note-meta {
  overflow: hidden;
  color: var(--color-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.editor-meta {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

.editor-text {
  margin-bottom: var(--space-3);
  font-size: 0.8125rem;
}

/* A to-do line. The box (::before) and the tick (::after) are drawn in CSS.
   They are positioned "absolute" so the line-through of a finished to-do
   does not also cross out the box. */
.check {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.5rem;
  font-size: 0.8125rem;
}

.check::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 0.25rem;
}

.check.is-done {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.check.is-done::before {
  border-color: var(--color-brand);
  background: var(--color-brand);
}

/* The tick: the right and bottom border of a small rotated box. */
.check.is-done::after {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0.31rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid var(--color-on-brand);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
