/* ---------- Glossary overview (/slovnik) ---------- */
.dictionary-intro {
  max-width: 76rem;
  margin-bottom: 3.2rem;
  font-size: 1.8rem;
  line-height: 2.9rem;
  color: #5a607f;
}
.dictionary-count {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #7e84a3;
}

.dictionary-tools {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
}
.dictionary-search input {
  width: 100%;
  max-width: 56rem;
  padding: 1.4rem 2rem;
  border: 1px solid #d7dbec;
  border-radius: 999px;
  font-size: 1.6rem;
  color: #101828;
  background: #ffffff;
}
.dictionary-search input:focus {
  outline: none;
  border-color: #0058ff;
  box-shadow: 0 0 0 3px rgba(0, 88, 255, 0.15);
}
.dictionary-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.dictionary-category {
  padding: 0.6rem 1.4rem;
  border: 1px solid #d7dbec;
  border-radius: 999px;
  background: #ffffff;
  font-size: 1.4rem;
  color: #5a607f;
  cursor: pointer;
}
.dictionary-category:hover {
  border-color: #0058ff;
  color: #0058ff;
}
.dictionary-category.is-active {
  border-color: #0058ff;
  background: #0058ff;
  color: #ffffff;
}

.dictionary-row {
  align-items: flex-start;
  margin-bottom: 4.8rem;
}
.dictionary-row[hidden] {
  display: none;
}
h2.dictionary-row-left {
  margin: 0;
  font-family: inherit;
  line-height: 1;
}
.dictionary-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem 3.2rem;
  width: calc(100% - 15rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.dictionary-entry[hidden] {
  display: none;
}
.dictionary-entry-name {
  margin: 0 0 0.4rem;
  font-family: "Geist", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 2.8rem;
}
.dictionary-entry-name a {
  color: #0058ff;
  text-decoration: none;
}
.dictionary-entry-name a:hover {
  text-decoration: underline;
}
.dictionary-entry-fullname {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 2rem;
  color: #7e84a3;
}
.dictionary-entry-summary {
  margin: 0;
  font-size: 1.5rem;
  line-height: 2.3rem;
  color: #5a607f;
}
.dictionary-empty {
  font-size: 1.6rem;
  color: #5a607f;
}

@media (max-width: 991px) {
  .dictionary-entries {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .dictionary-entries {
    width: calc(100% - 5rem);
  }
  .dictionary-entry-name {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }
}

/* ---------- Term detail (/slovnik/{slug}) ---------- */
.dictionary-term-fullname {
  font-weight: 400;
  color: #5a607f;
}
.dictionary-facts a {
  color: #0058ff;
}
.dictionary-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dictionary-related-list li {
  padding: 1.6rem 2rem;
  border: 1px solid #e4e7ec;
  border-radius: 1.2rem;
}
.dictionary-related-list a {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
}
.dictionary-related-list a:hover {
  text-decoration: underline;
}
.dictionary-related-list span {
  display: block;
  font-size: 1.4rem;
  line-height: 2.1rem;
  color: #5a607f;
}
.dictionary-sources {
  margin-top: 4rem;
}
.dictionary-sources .heading-h3 {
  margin-bottom: 1.2rem;
}
.dictionary-sources li {
  font-size: 1.5rem;
  color: #5a607f;
}
.dictionary-sources a {
  color: #0058ff;
}
.dictionary-back {
  margin-top: 4rem;
}
.dictionary-back a {
  color: #0058ff;
}
@media (max-width: 767px) {
  .dictionary-related-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dictionary-top-list[hidden] {
  display: none;
}
