.notes-kicker {
  color: #555;
}

.notes-intro {
  margin-bottom: 0.5rem;
}

.notes-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}

.notes-search {
  flex: 1 1 16rem;
}

.notes-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.notes-filters,
.notes-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.notes-filter,
.notes-tag-filter {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.notes-filter.is-active,
.notes-tag-filter.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notes-item {
  background: #fff;
  margin-bottom: 0.75rem;
}

.notes-item.is-hidden {
  display: none;
}

.notes-item-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.9rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

.notes-item-link:hover,
.notes-item-link:focus {
  background: #f6f6f6;
}

.notes-badge {
  display: inline-block;
  align-self: start;
  margin-top: 0.15rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 600;
  border-radius: 3px;
  background: #eee;
  color: #333;
}

.notes-badge--video {
  background: #f4d6d6;
  color: #7a1f1f;
}

.notes-badge--book {
  background: #d9e4f2;
  color: #1c3d66;
}

.notes-badge--hidden {
  background: #e8e8e8;
  color: #444;
}

.notes-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.notes-item-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
}

.notes-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.9rem;
}

.notes-item-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.notes-mini-tag {
  font-size: 0.75rem;
  color: #555;
  background: #f0f0f0;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.notes-status {
  text-transform: capitalize;
}

.notes-empty,
.notes-empty-filter {
  color: #666;
}

.notes-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}

.notes-source-link {
  font-weight: 600;
}

.notes-embed {
  position: relative;
  width: 100%;
  margin: 0 0 1.75rem;
  aspect-ratio: 16 / 9;
  background: #111;
}

.notes-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.notes-edit {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.notes-sidebar #TableOfContents ul {
  list-style: none;
  padding-inline-start: 0;
  padding-left: 0;
}

.notes-sidebar #TableOfContents ul ul {
  padding-inline-start: 1rem;
  padding-left: 0;
}

.notes-rtl {
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.notes-rtl .notes-single-content,
.notes-rtl .notes-single-header h1,
.notes-rtl .notes-sidebar {
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.notes-rtl .notes-single-content {
  text-align: right;
  line-height: 1.95;
}

.notes-rtl .notes-single-content h2,
.notes-rtl .notes-single-content h3 {
  font-weight: 700;
}

.notes-rtl .notes-kicker,
.notes-rtl .notes-meta,
.notes-rtl .notes-edit {
  letter-spacing: normal;
}

.notes-badge--podcast {
  background: #e4ddd4;
  color: #5a4632;
}

@media (min-width: 60em) {
  .notes-item-link {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .notes-item-tags {
    grid-column: auto;
    justify-content: flex-end;
  }
}
