.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-random {
  appearance: none;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.notes-random:hover,
.notes-random:focus {
  background: #333;
  border-color: #333;
}

.notes-random-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.notes-random-link:hover,
.notes-random-link:focus {
  color: #111;
}

.notes-reviewed,
.notes-last-reviewed {
  color: #777;
  font-size: 0.85em;
}

.notes-item.is-stale {
  box-shadow: inset 3px 0 0 #c9b27c;
}

.notes-stale {
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1.1rem;
  background: #fff8ea;
  border: 1px solid #ead9b0;
  border-radius: 8px;
}

.notes-stale-label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5420;
}

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

.notes-stale-list li {
  margin: 0.2rem 0;
}

.notes-stale-list a {
  color: #111;
}

.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-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;
}

.notes-footer {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid #ddd;
}

.notes-reactions {
  margin-top: 1.75rem;
  padding: 1.35rem 1.2rem 1.2rem;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
}

.notes-reactions-header {
  margin-bottom: 1rem;
}

.notes-reactions-label {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
}

.notes-reactions-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.notes-reaction {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-height: 5.5rem;
  border: 1px solid #ddd;
  background: #fafafa;
  color: inherit;
  font: inherit;
  padding: 0.85rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.notes-reaction:hover,
.notes-reaction:focus {
  border-color: #111;
  background: #fff;
}

.notes-reaction.is-selected {
  background: #111;
  border-color: #111;
  color: #fff;
}

.notes-reaction-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.notes-reaction-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.notes-reaction-count {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: #666;
}

.notes-reaction.is-selected .notes-reaction-count {
  color: #ccc;
}

.notes-reactions-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #777;
}

.notes-reactions-hint.is-error {
  color: #7a1f1f;
}

.notes-edit {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #777;
}

.notes-quiz-launch {
  appearance: none;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.notes-quiz-launch[hidden] {
  display: none !important;
}

.notes-quiz-launch:hover,
.notes-quiz-launch:focus {
  background: #333;
  border-color: #333;
}

.notes-quiz {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.15rem 1.05rem;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
}

.notes-quiz-lead,
.notes-quiz-score {
  margin: 0 0 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #333;
}

.notes-quiz-score {
  margin-top: 0.9rem;
  font-weight: 600;
}

.notes-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.notes-quiz-btn {
  appearance: none;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}

.notes-quiz-btn:hover,
.notes-quiz-btn:focus {
  background: #333;
  border-color: #333;
}

.notes-quiz-btn--secondary {
  background: #fff;
  color: #111;
}

.notes-quiz-btn--secondary:hover,
.notes-quiz-btn--secondary:focus {
  background: #f4f4f4;
  color: #111;
}

.notes-quiz-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: #555;
}

.notes-quiz-btn--ghost:hover,
.notes-quiz-btn--ghost:focus {
  background: transparent;
  border-color: transparent;
  color: #111;
  text-decoration: underline;
}

.notes-quiz-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  line-height: 1.6;
  resize: vertical;
  background: #fff;
}

.notes-quiz-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.notes-quiz-yours,
.notes-quiz-originals {
  margin: 0 0 1rem;
}

.notes-quiz-list {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.notes-quiz-list li {
  margin: 0.35rem 0;
}

.notes-quiz-picks {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}

.notes-quiz-pick {
  appearance: none;
  width: 100%;
  text-align: start;
  border: 1px solid #ddd;
  background: #fafafa;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.notes-quiz-pick:hover,
.notes-quiz-pick:focus {
  border-color: #111;
  background: #fff;
}

.notes-quiz-pick.is-selected {
  border-color: #111;
  background: #111;
  color: #fff;
}

.notes-quiz-pick.is-locked {
  cursor: default;
}

.notes-quiz-pick.is-correct {
  background: #e7f3ea;
  border-color: #2f6f3e;
  color: #1c3d24;
}

.notes-quiz-pick.is-missed {
  background: #fff8ea;
  border-color: #c9b27c;
  color: #5a4632;
}

.notes-quiz-pick.is-wrong {
  background: #f8eaea;
  border-color: #b15b5b;
  color: #7a1f1f;
}

@media (min-width: 40em) {
  .notes-reactions {
    padding: 1.5rem 1.4rem 1.35rem;
  }

  .notes-reactions-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@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;
  }
}
