/* LZK dictionary: /ordbog/ index and single glossary entries. Scoped to body.lzk-dictionary-index / body.lzk-dictionary-entry only. Light, static, no animation. */

body.lzk-dictionary-index,
body.lzk-dictionary-entry {
  --kd-ink: #1b1d21;
  --kd-muted: #5a6068;
  --kd-line: #e4e7eb;
  --kd-soft: #f6f7f9;
  --kd-red: #d61119;
  --kd-red-dark: #b00d14;
  --kd-radius: 14px;
}

/* ---------- Index: remove motion, reveal overlays and footer uncover (entries get this from knowledge-design.css) ---------- */
html:has(body.lzk-dictionary-index) { scroll-behavior: auto !important; }
body.lzk-dictionary-index .main *,
body.lzk-dictionary-index .main *::before,
body.lzk-dictionary-index .main *::after {
  animation: none !important;
  transition: none !important;
}
body.lzk-dictionary-index .wow,
body.lzk-dictionary-index .animated {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation-name: none !important;
  animation-delay: 0s !important;
}
body.lzk-dictionary-index .revealer,
body.lzk-dictionary-index .revealer__layer { display: none !important; }
body.lzk-dictionary-index .main,
body.lzk-dictionary-index .lzk-for-footer-animation {
  position: relative !important;
  transform: none !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}
body.lzk-dictionary-index #footer,
body.lzk-dictionary-index footer {
  position: relative !important;
  bottom: auto !important;
  transform: none !important;
}
body.lzk-dictionary-index .pin-spacer { display: contents !important; }
body.lzk-dictionary-index [hidden] { display: none !important; }

/* ---------- Index: header ---------- */
body.lzk-dictionary-index .lz-acfsingle-section {
  padding: 128px 0 88px;
  background: #fff;
  color: var(--kd-ink);
}
body.lzk-dictionary-index .lz-acfsingle-section .container { max-width: 1200px; }
body.lzk-dictionary-index .lzk-d-theory-wrap-titles {
  max-width: 760px;
  margin: 0 0 36px;
  padding: 0;
  text-align: left;
}
body.lzk-dictionary-index .lzk-d-theory-wrap-titles h1 {
  font-family: inherit;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--kd-ink);
}
body.lzk-dictionary-index .lzk-d-theory-wrap-titles p {
  max-width: 62ch;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--kd-muted);
}
body.lzk-dictionary-index .lz-acfsingle-content { margin: 0; padding: 0; }

/* Plugin's own filter row has no hrefs; the script-built toolbar replaces it. */
body.lzk-dictionary-index .wpg-list-filter-container { display: none; }
body.lzk-dictionary-index .wpg-clearfix { display: none; }

/* ---------- Index: search + A-Z ---------- */
body.lzk-dictionary-index .lzk-dict-tools {
  margin: 0 0 32px;
  padding: 24px;
  background: var(--kd-soft);
  border: 1px solid var(--kd-line);
  border-radius: var(--kd-radius);
}
body.lzk-dictionary-index .lzk-dict-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--kd-ink);
}
body.lzk-dictionary-index .lzk-dict-field { position: relative; }
body.lzk-dictionary-index .lzk-dict-field input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  margin: 0;
  padding: 0 80px 0 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--kd-ink);
  background: #fff;
  border: 1px solid #c5cad1;
  border-radius: 12px;
  box-shadow: none;
}
body.lzk-dictionary-index .lzk-dict-field input::-webkit-search-cancel-button { display: none; }
body.lzk-dictionary-index .lzk-dict-field input:focus-visible {
  outline: 3px solid var(--kd-red);
  outline-offset: 2px;
  border-color: var(--kd-red);
}
body.lzk-dictionary-index .lzk-dict-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-weight: 600;
  color: var(--kd-red);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
body.lzk-dictionary-index .lzk-dict-clear:hover { color: var(--kd-red-dark); text-decoration: underline; }
body.lzk-dictionary-index .lzk-dict-clear:focus-visible,
body.lzk-dictionary-index .lzk-dict-reset:focus-visible,
body.lzk-dictionary-index .lzk-dict-az a:focus-visible,
body.lzk-dictionary-index .wpg-list-item-title:focus-visible {
  outline: 3px solid var(--kd-red);
  outline-offset: 2px;
  border-radius: 6px;
}
body.lzk-dictionary-index .lzk-dict-count {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--kd-muted);
}
body.lzk-dictionary-index .lzk-dict-az { margin-top: 20px; }
body.lzk-dictionary-index .lzk-dict-az-title {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kd-muted);
}
body.lzk-dictionary-index .lzk-dict-az ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.lzk-dictionary-index .lzk-dict-az li { margin: 0; padding: 0; }
body.lzk-dictionary-index .lzk-dict-az a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--kd-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--kd-line);
  border-radius: 10px;
}
body.lzk-dictionary-index .lzk-dict-az a[href]:hover { color: var(--kd-red); border-color: var(--kd-red); }
body.lzk-dictionary-index .lzk-dict-az a[aria-disabled="true"] {
  color: #9aa0a8;
  background: transparent;
  border-color: transparent;
  cursor: default;
}

/* ---------- Index: grouped terms ---------- */
body.lzk-dictionary-index .wpg-list {
  display: block;
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.lzk-dictionary-index .wpg-list-block {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0 24px;
  float: none;
  clear: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 24px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--kd-line);
  scroll-margin-top: 112px;
}
body.lzk-dictionary-index .wpg-list-block:last-child { border-bottom: 1px solid var(--kd-line); }
body.lzk-dictionary-index .wpg-list-block:target .wpg-list-block-heading { text-decoration: underline; text-underline-offset: 6px; }
body.lzk-dictionary-index .wpg-list-block-heading {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 44px;
  color: var(--kd-red);
}
body.lzk-dictionary-index .wpg-list-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.lzk-dictionary-index .wpg-list-item {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #edf0f3;
}
/* WP Glossary's four-column rule otherwise leaves each CSS-grid cell at 23% width. */
body.lzk-dictionary-index .wpg-list-wrapper .wpg-list .wpg-list-item { width: auto; min-width: 0; }
body.lzk-dictionary-index .wpg-list-item-title {
  display: flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 6px 4px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--kd-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.lzk-dictionary-index .wpg-list-item-title:hover {
  color: var(--kd-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Empty state */
body.lzk-dictionary-index .lzk-dict-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #c5cad1;
  border-radius: var(--kd-radius);
}
body.lzk-dictionary-index .lzk-dict-empty p { margin: 0 0 16px; font-size: 1.125rem; color: var(--kd-ink); }
body.lzk-dictionary-index .lzk-dict-reset {
  min-height: 44px;
  padding: 0 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--kd-red);
  border: 1px solid var(--kd-red);
  border-radius: 999px;
  cursor: pointer;
}
body.lzk-dictionary-index .lzk-dict-reset:hover { background: var(--kd-red-dark); border-color: var(--kd-red-dark); }

/* ---------- Index: responsive ---------- */
@media (max-width: 1023px) {
  body.lzk-dictionary-index .wpg-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.lzk-dictionary-index .lz-acfsingle-section { padding: 112px 0 64px; }
  body.lzk-dictionary-index .lzk-dict-tools { padding: 16px; }
  body.lzk-dictionary-index .wpg-list-block { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  body.lzk-dictionary-index .wpg-list-block-heading { margin-bottom: 4px; }
  body.lzk-dictionary-index .lzk-dict-az { margin-top: 12px; }
  body.lzk-dictionary-index .lzk-dict-az-title { display: none; }
  body.lzk-dictionary-index .lzk-dict-az ul {
    flex-wrap: nowrap;
    margin: 0 -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.lzk-dictionary-index .lzk-dict-az li { flex: 0 0 auto; }
}
@media (max-width: 559px) {
  body.lzk-dictionary-index .wpg-list-items { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Entry: layered on knowledge-design.css ---------- */
/* Entries without a featured image render an empty hero (uploads/ with no file); hide it. */
body.lzk-dictionary-entry #single_page .singelblog_toptitlediv .image[style*="uploads/);"] { display: none; }
body.lzk-dictionary-entry #single_page .singelblog_toptitlediv { margin-bottom: 32px; }
body.lzk-dictionary-entry #single_page .subtitle {
  max-width: 70ch;
  margin: 0;
  padding-left: 20px;
  border-left: 4px solid var(--kd-red);
  color: var(--kd-ink);
  font-size: 1.1875rem;
  line-height: 1.65;
}
body.lzk-dictionary-entry #single_page .singelblog_content > :is(h2, h3):empty { display: none; }
body.lzk-dictionary-entry #single_page .singelblog_content a.wpg-linkify {
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
}
body.lzk-dictionary-entry #single_page .singelblog_content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}
body.lzk-dictionary-entry #single_page .singelblog_faqsec:not(:has(.accordion-box)) { display: none; }
body.lzk-dictionary-entry #single_page .lzk-related-blogs:not(:has(*)) { display: none; }

@media (max-width: 599px) {
  body.lzk-dictionary-entry #single_page .subtitle { padding-left: 16px; font-size: 1.0625rem; }
}
