/* Design tokens */

:root {
  --songbook-page: #dfe4e7;
  --songbook-container: #f2f3f4;
  --songbook-container-line: #c8d0d4;
  --songbook-action: #315d76;
  --songbook-action-hover: #274e65;
  --songbook-card: #f1f0f7;
  --songbook-card-hover: #5e56a6;
  --songbook-card-text: #48445f;
  --songbook-card-hover-text: #ffffff;
  --songbook-pinned: #e3cee1;
  --songbook-pinned-hover: #945081;
  --songbook-pinned-text: #62465d;
  --songbook-pinned-hover-text: #ffffff;
  --songbook-field: #ffffff;
  --songbook-field-line: #aebbc2;
  --songbook-heading: #263d4a;
  --songbook-copy: #4f6069;
  --songbook-shadow: 0 15px 34px rgba(38, 61, 74, .10);

  --songbook-white: #ffffff;
  --songbook-bar: #e8ebed;
  --songbook-divider: #e3e7e9;
  --songbook-code-background: #edf0f2;
  --songbook-list-copy: #3f555f;
  --songbook-song-emphasis: #56515f;
  --songbook-muted: #6d7d85;
  --songbook-note: #7a878e;
  --songbook-disabled: #7c858a;
  --songbook-placeholder: #89959b;
  --songbook-current: #5d57a1;
  --songbook-current-pinned: #8b547f;
  --songbook-letter-line: #bdc7cc;
  --songbook-search-line: #c7ced2;
  --songbook-header-icon-background: #fffdf8;

  --songbook-page-highlight: rgba(255, 255, 255, .28);
  --songbook-badge-line: rgba(255, 255, 255, .3);
  --songbook-inactive-surface: rgba(255, 255, 255, .45);
  --songbook-soft-surface: rgba(255, 255, 255, .52);
  --songbook-control-surface: rgba(255, 255, 255, .62);
  --songbook-sort-surface: rgba(255, 255, 255, .68);
  --songbook-placeholder-surface: rgba(255, 255, 255, .72);
  --songbook-song-surface: rgba(255, 255, 255, .82);
  --songbook-field-shadow: rgba(38, 61, 74, .05);
  --songbook-song-shadow: rgba(38, 61, 74, .06);
  --songbook-card-shadow-light: rgba(38, 61, 74, .09);
  --songbook-card-shadow-color: rgba(38, 61, 74, .10);
  --songbook-result-shadow: rgba(38, 61, 74, .16);
  --songbook-action-focus: rgba(49, 93, 118, .13);
  --songbook-hover-shadow: rgba(54, 47, 119, .18);
  --songbook-card-focus: rgba(94, 86, 166, .12);
  --songbook-card-line: rgba(94, 86, 166, .16);
  --songbook-card-line-strong: rgba(94, 86, 166, .22);
  --songbook-tag-line: rgba(94, 86, 166, .24);
  --songbook-section-line: rgba(94, 86, 166, .28);
  --songbook-disabled-line: rgba(94, 86, 166, .13);
  --songbook-legacy-card-line: rgba(94, 86, 166, .18);
  --songbook-pinned-line: rgba(148, 80, 129, .18);
  --songbook-pinned-control-line: rgba(148, 80, 129, .22);
  --songbook-pinned-tag-line: rgba(148, 80, 129, .24);
  --songbook-field-line-soft: rgba(174, 187, 194, .72);
  --songbook-field-line-strong: rgba(174, 187, 194, .8);
  --songbook-pinned-shadow: rgba(98, 70, 93, .22);
  --songbook-pinned-badge: rgba(98, 70, 93, .86);
}

/* Shared songbook foundation */

body.wdt-songbook-context {
  background: var(--songbook-page);
}

body.wdt-songbook-context .wdt-songbook-main {
  scroll-margin-top: 104px;
}

/* Songbook home */

body.wdt-songbook-home .wdt-songbook-main {
  min-height: calc(100vh - 82px);
  padding: 16px 0 38px;
  background: radial-gradient(circle at 12% 0%, var(--songbook-page-highlight), transparent 31%),
    var(--songbook-page);
}

body.wdt-songbook-home .wdt-songbook-shell {
  overflow: hidden;
  background: var(--songbook-container);
  border: 1px solid var(--songbook-container-line);
  border-radius: 12px;
  box-shadow: var(--songbook-shadow);
}

body.wdt-songbook-home .wdt-songbook-topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--songbook-card-text);
  background: var(--songbook-bar);
  border-bottom: 1px solid var(--songbook-card-line);
}

body.wdt-songbook-home .wdt-songbook-topbar__home,
body.wdt-songbook-home .wdt-songbook-logout {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease;
}

body.wdt-songbook-home .wdt-songbook-topbar__home:hover,
body.wdt-songbook-home .wdt-songbook-topbar__home:focus-visible,
body.wdt-songbook-home .wdt-songbook-logout:hover,
body.wdt-songbook-home .wdt-songbook-logout:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-home .wdt-songbook-content {
  padding: 22px 12px 28px;
}

body.wdt-songbook-home .wdt-songbook-header {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

body.wdt-songbook-home .wdt-songbook-title {
  margin: 0;
  color: var(--songbook-heading);
  font-family: var(--wdt-title-font);
  font-size: clamp(1.75rem, 9vw, 2.45rem);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -.025em;
}

body.wdt-songbook-home .wdt-songbook-lead {
  margin: 8px auto 0;
  color: var(--songbook-copy);
  font-size: .92rem;
  line-height: 1.55;
}

body.wdt-songbook-home .wdt-songbook-section + .wdt-songbook-section {
  margin-top: 29px;
}

body.wdt-songbook-home .wdt-songbook-section__title {
  margin: 0 0 24px;
  color: var(--songbook-heading);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 760;
  text-align: center;
}

body.wdt-songbook-home .wdt-songbook-section__note {
  color: var(--songbook-note);
  font-size: .72rem;
  font-weight: 600;
}

body.wdt-songbook-home .wdt-songbook-search {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

body.wdt-songbook-home .wdt-songbook-search__input {
  width: 100%;
  min-height: 52px;
  display: block;
  padding: 0 52px 0 16px;
  color: var(--songbook-heading);
  background: var(--songbook-field);
  border: 1px solid var(--songbook-field-line);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px var(--songbook-field-shadow);
  font-size: 1rem;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

body.wdt-songbook-home .wdt-songbook-search__input::placeholder {
  color: var(--songbook-placeholder);
  opacity: 1;
}

body.wdt-songbook-home .wdt-songbook-search__input:focus {
  border-color: var(--songbook-action);
  box-shadow: 0 0 0 3px var(--songbook-action-focus);
}

body.wdt-songbook-home .wdt-songbook-search__button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--songbook-white);
  background: var(--songbook-action);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

body.wdt-songbook-home .wdt-songbook-search__button:hover,
body.wdt-songbook-home .wdt-songbook-search__button:focus-visible {
  background: var(--songbook-action-hover);
}

body.wdt-songbook-home .wdt-songbook-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body.wdt-songbook-home .wdt-songbook-category-card {
  min-width: 0;
  min-height: 90px;
  display: flex;
  align-items: stretch;
}

body.wdt-songbook-home .wdt-songbook-category-card__link {
  position: relative;
  width: 100%;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 9px;
  overflow: hidden;
  color: var(--songbook-card-text);
  background: var(--songbook-card);
  border: 1px solid var(--songbook-card-line);
  border-radius: 11px;
  box-shadow: 0 5px 12px var(--songbook-card-shadow-color);
  text-align: center;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.wdt-songbook-home .wdt-songbook-category-card__link:hover,
body.wdt-songbook-home .wdt-songbook-category-card__link:focus-visible {
  color: var(--songbook-card-hover-text);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
  box-shadow: 0 8px 17px var(--songbook-hover-shadow);
}

body.wdt-songbook-home .wdt-songbook-category-card__title {
  display: block;
  font-size: .78rem;
  line-height: 1.28;
  font-weight: 760;
  overflow-wrap: anywhere;
}

body.wdt-songbook-home .wdt-songbook-category-card--pinned .wdt-songbook-category-card__link {
  color: var(--songbook-pinned-text);
  background: var(--songbook-pinned);
  border-color: var(--songbook-pinned-line);
}

body.wdt-songbook-home .wdt-songbook-category-card--pinned .wdt-songbook-category-card__link:hover,
body.wdt-songbook-home .wdt-songbook-category-card--pinned .wdt-songbook-category-card__link:focus-visible {
  color: var(--songbook-pinned-hover-text);
  background: var(--songbook-pinned-hover);
}

body.wdt-songbook-home .wdt-songbook-category-card__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  color: var(--songbook-white);
  background: var(--songbook-pinned-badge);
  border: 1px solid var(--songbook-badge-line);
  border-radius: 999px;
  font-size: .58rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  pointer-events: none;
}

body.wdt-songbook-home .wdt-songbook-az {
  overflow: hidden;
  background: var(--songbook-white);
  border: 1px solid var(--songbook-container-line);
  border-radius: 7px;
}

body.wdt-songbook-home .wdt-songbook-alphabet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 11px 9px;
  background: var(--songbook-bar);
  border-bottom: 1px solid var(--songbook-container-line);
}

body.wdt-songbook-home .wdt-songbook-letter {
  min-width: 31px;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--songbook-heading);
  background: var(--songbook-white);
  border: 1px solid var(--songbook-letter-line);
  border-radius: 4px;
  font-size: .76rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-home .wdt-songbook-letter:hover,
body.wdt-songbook-home .wdt-songbook-letter:focus-visible,
body.wdt-songbook-home .wdt-songbook-letter[aria-current="true"] {
  color: var(--songbook-white);
  background: var(--songbook-action);
  border-color: var(--songbook-action);
}

body.wdt-songbook-home .wdt-songbook-song-list {
  margin: 0;
  padding: 5px 13px 9px;
  list-style: none;
}

body.wdt-songbook-home .wdt-songbook-song-list li {
  border-bottom: 1px solid var(--songbook-divider);
}

body.wdt-songbook-home .wdt-songbook-song-list li:last-child {
  border-bottom: 0;
}

body.wdt-songbook-home .wdt-songbook-song-list a {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  color: var(--songbook-list-copy);
  font-size: .86rem;
  line-height: 1.35;
  font-weight: 650;
}

body.wdt-songbook-home .wdt-songbook-song-list a::before {
  content: "";
  flex: 0 0 auto;
  color: var(--songbook-action);
  font-family: "Font Awesome 6 Free";
  font-size: .72rem;
  font-weight: 900;
}

body.wdt-songbook-home .wdt-songbook-song-list a:hover,
body.wdt-songbook-home .wdt-songbook-song-list a:focus-visible {
  color: var(--songbook-action-hover);
}

body.wdt-songbook-home .wdt-songbook-empty {
  display: none;
  margin: 0;
  padding: 18px 14px;
  color: var(--songbook-muted);
  font-size: .84rem;
  text-align: center;
}

body.wdt-songbook-home .wdt-songbook-bottombar {
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 10px;
  color: var(--songbook-card-text);
  background: var(--songbook-bar);
  border-top: 1px solid var(--songbook-card-line);
}

body.wdt-songbook-home .wdt-song-footer-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-home .wdt-song-footer-link:hover,
body.wdt-songbook-home .wdt-song-footer-link:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-home .wdt-song-footer-link--end {
  margin-left: auto;
}

@media (min-width: 560px) {
  body.wdt-songbook-home .wdt-songbook-content {
    padding: 27px 24px 34px;
  }

  body.wdt-songbook-home .wdt-songbook-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }

  body.wdt-songbook-home .wdt-songbook-category-card,
  body.wdt-songbook-home .wdt-songbook-category-card__link {
    min-height: 106px;
  }

  body.wdt-songbook-home .wdt-songbook-category-card__title {
    font-size: .87rem;
  }

  body.wdt-songbook-home .wdt-songbook-song-list {
    columns: 2;
    column-gap: 28px;
  }

  body.wdt-songbook-home .wdt-songbook-song-list li {
    break-inside: avoid;
  }
}

@media (min-width: 820px) {
  body.wdt-songbook-home .wdt-songbook-main {
    padding: 28px 0 58px;
  }

  body.wdt-songbook-home .wdt-songbook-shell {
    border-radius: 14px;
  }

  body.wdt-songbook-home .wdt-songbook-topbar,
  body.wdt-songbook-home .wdt-songbook-bottombar {
    padding-inline: 18px;
  }

  body.wdt-songbook-home .wdt-songbook-content {
    padding: 38px 38px 45px;
  }

  body.wdt-songbook-home .wdt-songbook-header {
    margin-bottom: 25px;
  }

  body.wdt-songbook-home .wdt-songbook-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }

  body.wdt-songbook-home .wdt-songbook-category-card,
  body.wdt-songbook-home .wdt-songbook-category-card__link {
    min-height: 124px;
  }

  body.wdt-songbook-home .wdt-songbook-category-card__title {
    font-size: .94rem;
  }

  body.wdt-songbook-home .wdt-songbook-song-list {
    columns: 3;
  }
}

@media (max-width: 374px) {
  body.wdt-songbook-home .wdt-songbook-category-grid {
    gap: 7px;
  }

  body.wdt-songbook-home .wdt-songbook-category-card,
  body.wdt-songbook-home .wdt-songbook-category-card__link {
    min-height: 84px;
  }

  body.wdt-songbook-home .wdt-songbook-category-card__title {
    font-size: .72rem;
  }

  body.wdt-songbook-home .wdt-songbook-category-card__badge {
    font-size: .52rem;
  }

  body.wdt-songbook-home .wdt-songbook-topbar__home span {
    display: none;
  }
}

/* Category view */

body.wdt-songbook-taxonomy .wdt-songbook-main {
  min-height: calc(100vh - 82px);
  padding: 16px 0 38px;
  background: radial-gradient(circle at 12% 0%, var(--songbook-page-highlight), transparent 31%),
    var(--songbook-page);
}

body.wdt-songbook-taxonomy .wdt-songbook-shell {
  overflow: hidden;
  background: var(--songbook-container);
  border: 1px solid var(--songbook-container-line);
  border-radius: 12px;
  box-shadow: var(--songbook-shadow);
}

body.wdt-songbook-taxonomy .wdt-songbook-topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--songbook-card-text);
  background: var(--songbook-bar);
  border-bottom: 1px solid var(--songbook-card-line);
}

body.wdt-songbook-taxonomy .wdt-songbook-topbar__home,
body.wdt-songbook-taxonomy .wdt-songbook-logout {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-taxonomy .wdt-songbook-topbar__home:hover,
body.wdt-songbook-taxonomy .wdt-songbook-topbar__home:focus-visible,
body.wdt-songbook-taxonomy .wdt-songbook-logout:hover,
body.wdt-songbook-taxonomy .wdt-songbook-logout:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-taxonomy .wdt-songbook-content {
  padding: 21px 12px 25px;
}

body.wdt-songbook-taxonomy .wdt-category-header {
  margin-bottom: 19px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--songbook-section-line);
}

body.wdt-songbook-taxonomy .wdt-category-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  color: var(--songbook-card-hover);
  font-size: .7rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

body.wdt-songbook-taxonomy .wdt-category-title {
  margin: 0;
  color: var(--songbook-heading);
  font-family: var(--wdt-title-font);
  font-size: clamp(1.68rem, 8vw, 2.35rem);
  line-height: 1.1;
  font-weight: 770;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

body.wdt-songbook-taxonomy .wdt-category-count {
  margin: 8px 0 0;
  color: var(--songbook-copy);
  font-size: .84rem;
  line-height: 1.45;
}

body.wdt-songbook-taxonomy .wdt-category-toolbar {
  width: 100%;
  display: flex;
  grid-template-columns: minmax(0, 760px) auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 23px;
}

body.wdt-songbook-taxonomy .wdt-songbook-search {
  position: relative;
  width: 100%;
}

body.wdt-songbook-taxonomy .wdt-songbook-search__input {
  width: 100%;
  min-height: 50px;
  display: block;
  padding: 0 52px 0 15px;
  color: var(--songbook-heading);
  background: var(--songbook-field);
  border: 1px solid var(--songbook-field-line);
  border-radius: 7px;
  box-shadow: inset 0 1px 2px var(--songbook-field-shadow);
  font-size: .96rem;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

body.wdt-songbook-taxonomy .wdt-songbook-search__input::placeholder {
  color: var(--songbook-placeholder);
  opacity: 1;
}

body.wdt-songbook-taxonomy .wdt-songbook-search__input:focus {
  border-color: var(--songbook-card-hover);
  box-shadow: 0 0 0 3px var(--songbook-card-focus);
}

body.wdt-songbook-taxonomy .wdt-songbook-search__button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--songbook-card-text);
  background: var(--songbook-bar);
  border: 1px solid var(--songbook-search-line);
  border-radius: 5px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-taxonomy .wdt-songbook-search__button:hover,
body.wdt-songbook-taxonomy .wdt-songbook-search__button:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-taxonomy .wdt-category-sort {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-self: auto;
  gap: 9px;
  padding: 6px 10px;
  color: var(--songbook-heading);
  background: var(--songbook-soft-surface);
  border: 1px solid var(--songbook-field-line-soft);
  border-radius: 7px;
  font-size: .85rem;
  line-height: 1.25;
  font-weight: 700;
  cursor: pointer;
}

body.wdt-songbook-taxonomy .wdt-category-sort input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--songbook-card-hover);
  cursor: pointer;
}

body.wdt-songbook-taxonomy .wdt-category-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body.wdt-songbook-taxonomy .wdt-category-song {
  min-width: 0;
  min-height: 90px;
}

body.wdt-songbook-taxonomy .wdt-category-song__link {
  position: relative;
  width: 100%;
  min-height: 90px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px 9px;
  color: var(--songbook-card-text);
  background: var(--songbook-card);
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 11px;
  box-shadow: 0 5px 12px var(--songbook-card-shadow-light);
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 730;
  text-align: center;
  overflow-wrap: anywhere;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.wdt-songbook-taxonomy .wdt-category-song__link:hover,
body.wdt-songbook-taxonomy .wdt-category-song__link:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
  box-shadow: 0 8px 17px var(--songbook-hover-shadow);
  transform: translateY(-1px);
}

body.wdt-songbook-taxonomy .wdt-category-other {
  margin-top: 29px;
  padding-top: 21px;
  border-top: 1px solid var(--songbook-section-line);
}

body.wdt-songbook-taxonomy .wdt-category-other__title {
  margin: 0 0 11px;
  color: var(--songbook-heading);
  font-size: .94rem;
  line-height: 1.3;
  font-weight: 760;
}

body.wdt-songbook-taxonomy .wdt-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.wdt-songbook-taxonomy .wdt-category-tag {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  color: var(--songbook-card-text);
  background: var(--songbook-card);
  border: 1px solid var(--songbook-tag-line);
  border-radius: 9px;
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 680;
  overflow-wrap: anywhere;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-taxonomy .wdt-category-tag:hover,
body.wdt-songbook-taxonomy .wdt-category-tag:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-taxonomy .wdt-category-tag--current,
body.wdt-songbook-taxonomy .wdt-category-tag--pinned {
  color: var(--songbook-pinned-text);
  background: var(--songbook-pinned);
  border-color: var(--songbook-pinned-tag-line);
}

body.wdt-songbook-taxonomy .wdt-category-tag--current:hover,
body.wdt-songbook-taxonomy .wdt-category-tag--current:focus-visible,
body.wdt-songbook-taxonomy .wdt-category-tag--pinned:hover,
body.wdt-songbook-taxonomy .wdt-category-tag--pinned:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-pinned-hover);
  border-color: var(--songbook-pinned-hover);
}

body.wdt-songbook-taxonomy .wdt-category-tag--current {
  cursor: default;
}

body.wdt-songbook-taxonomy .wdt-songbook-bottombar {
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 10px;
  color: var(--songbook-card-text);
  background: var(--songbook-bar);
  border-top: 1px solid var(--songbook-card-line);
}

body.wdt-songbook-taxonomy .wdt-song-footer-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-taxonomy .wdt-song-footer-link:hover,
body.wdt-songbook-taxonomy .wdt-song-footer-link:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

@media (min-width: 680px) {
  body.wdt-songbook-taxonomy .wdt-songbook-content {
    padding: 29px 25px 32px;
  }

  body.wdt-songbook-taxonomy .wdt-category-tags {
    gap: 8px;
  }

  body.wdt-songbook-taxonomy .wdt-category-tag {
    min-height: 38px;
    padding-inline: 13px;
    font-size: .84rem;
  }
}

@media (min-width: 980px) {
  body.wdt-songbook-taxonomy .wdt-songbook-main {
    padding: 28px 0 58px;
  }

  body.wdt-songbook-taxonomy .wdt-songbook-shell {
    border-radius: 14px;
  }

  body.wdt-songbook-taxonomy .wdt-songbook-topbar,
  body.wdt-songbook-taxonomy .wdt-songbook-bottombar {
    padding-inline: 18px;
  }

  body.wdt-songbook-taxonomy .wdt-songbook-content {
    padding: 38px 38px 40px;
  }
}

@media (max-width: 374px) {
  body.wdt-songbook-taxonomy .wdt-songbook-topbar__home span {
    display: none;
  }

  body.wdt-songbook-taxonomy .wdt-category-title {
    font-size: 1.55rem;
  }

  body.wdt-songbook-taxonomy .wdt-category-tag {
    font-size: .74rem;
  }
}

/* Single song view */

body.wdt-songbook-single .wdt-songbook-main {
  min-height: calc(100vh - 82px);
  padding: 16px 0 38px;
  background: radial-gradient(circle at 12% 0%, var(--songbook-page-highlight), transparent 31%),
    var(--songbook-page);
}

body.wdt-songbook-single .wdt-songbook-shell {
  overflow: hidden;
  background: var(--songbook-container);
  border: 1px solid var(--songbook-container-line);
  border-radius: 12px;
  box-shadow: var(--songbook-shadow);
}

body.wdt-songbook-single .wdt-songbook-topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--songbook-card-text);
  background: var(--songbook-bar);
  border-bottom: 1px solid var(--songbook-card-line);
}

body.wdt-songbook-single .wdt-songbook-topbar__group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

body.wdt-songbook-single .wdt-songbook-nav-link,
body.wdt-songbook-single .wdt-songbook-logout {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-single .wdt-songbook-nav-link:hover,
body.wdt-songbook-single .wdt-songbook-nav-link:focus-visible,
body.wdt-songbook-single .wdt-songbook-logout:hover,
body.wdt-songbook-single .wdt-songbook-logout:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-single .wdt-songbook-content {
  padding: 21px 12px 25px;
}

body.wdt-songbook-single .wdt-song-header {
  margin-bottom: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--songbook-section-line);
}

body.wdt-songbook-single .wdt-song-title {
  margin: 0;
  color: var(--songbook-heading);
  font-family: var(--wdt-title-font);
  font-size: clamp(1.72rem, 8.2vw, 3rem);
  line-height: 1.08;
  font-weight: 770;
  letter-spacing: -.028em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body.wdt-songbook-single .wdt-song-entry-content {
  min-width: 0;
  padding: 18px 15px 20px;
  color: var(--wdt-text);
  background: var(--songbook-song-surface);
  border: 1px solid var(--songbook-field-line-soft);
  border-radius: 11px;
  box-shadow: 0 5px 14px var(--songbook-song-shadow);
  font-size: 1rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

body.wdt-songbook-single .wdt-song-entry-content > :first-child {
  margin-top: 0;
}

body.wdt-songbook-single .wdt-song-entry-content > :last-child {
  margin-bottom: 0;
}

body.wdt-songbook-single .wdt-song-entry-content p {
  margin: 0 0 1.25em;
}

body.wdt-songbook-single .wdt-song-entry-content h2,
body.wdt-songbook-single .wdt-song-entry-content h3,
body.wdt-songbook-single .wdt-song-entry-content h4,
body.wdt-songbook-single .wdt-song-entry-content h5,
body.wdt-songbook-single .wdt-song-entry-content h6 {
  margin: 1.55em 0 .65em;
  color: var(--songbook-heading);
  font-family: var(--wdt-title-font);
  line-height: 1.22;
  font-weight: 750;
}

body.wdt-songbook-single .wdt-song-entry-content h2 {
  font-size: 1.42em;
}

body.wdt-songbook-single .wdt-song-entry-content h3 {
  font-size: 1.23em;
}

body.wdt-songbook-single .wdt-song-entry-content h4 {
  font-size: 1.08em;
}

body.wdt-songbook-single .wdt-song-entry-content a {
  color: var(--songbook-card-hover);
  font-weight: 680;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .16s ease;
}

body.wdt-songbook-single .wdt-song-entry-content a:hover,
body.wdt-songbook-single .wdt-song-entry-content a:focus-visible {
  color: var(--songbook-pinned-hover);
}

body.wdt-songbook-single .wdt-song-entry-content strong,
body.wdt-songbook-single .wdt-song-entry-content b {
  color: var(--songbook-heading);
  font-weight: 780;
}

body.wdt-songbook-single .wdt-song-entry-content em,
body.wdt-songbook-single .wdt-song-entry-content i {
  color: var(--songbook-song-emphasis);
}

body.wdt-songbook-single .wdt-song-entry-content ul,
body.wdt-songbook-single .wdt-song-entry-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

body.wdt-songbook-single .wdt-song-entry-content li + li {
  margin-top: .35em;
}

body.wdt-songbook-single .wdt-song-entry-content blockquote {
  margin: 1.4em 0;
  padding: .85em 1em;
  color: var(--songbook-copy);
  background: var(--songbook-card);
  border-left: 3px solid var(--songbook-card-hover);
  border-radius: 0 8px 8px 0;
}

body.wdt-songbook-single .wdt-song-entry-content blockquote > :last-child {
  margin-bottom: 0;
}

body.wdt-songbook-single .wdt-song-entry-content hr {
  height: 1px;
  margin: 1.7em 0;
  background: var(--songbook-tag-line);
  border: 0;
}

body.wdt-songbook-single .wdt-song-entry-content img,
body.wdt-songbook-single .wdt-song-entry-content .wp-caption {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

body.wdt-songbook-single .wdt-song-entry-content .wp-caption-text {
  margin-top: .45em;
  color: var(--songbook-copy);
  font-size: .82em;
  line-height: 1.45;
  text-align: center;
}

body.wdt-songbook-single .wdt-song-entry-content iframe,
body.wdt-songbook-single .wdt-song-entry-content video {
  max-width: 100%;
  border: 0;
  border-radius: 8px;
}

body.wdt-songbook-single .wdt-song-entry-content audio {
  width: 100%;
  max-width: 100%;
}

body.wdt-songbook-single .wdt-song-entry-content table {
  width: 100%;
  display: block;
  margin: 1.35em 0;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

body.wdt-songbook-single .wdt-song-entry-content th,
body.wdt-songbook-single .wdt-song-entry-content td {
  padding: .65em .75em;
  border: 1px solid var(--songbook-field-line-strong);
  text-align: left;
  vertical-align: top;
}

body.wdt-songbook-single .wdt-song-entry-content th {
  background: var(--songbook-card);
  color: var(--songbook-heading);
}

body.wdt-songbook-single .wdt-song-entry-content pre {
  max-width: 100%;
  margin: 1.3em 0;
  padding: 1em;
  overflow-x: auto;
  color: var(--songbook-heading);
  background: var(--songbook-code-background);
  border: 1px solid var(--songbook-field-line-soft);
  border-radius: 8px;
  font: .88em/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

body.wdt-songbook-single .wdt-song-entry-content code {
  padding: .12em .28em;
  background: var(--songbook-code-background);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9em;
}

body.wdt-songbook-single .wdt-song-entry-content::after {
  content: "";
  display: table;
  clear: both;
}

body.wdt-songbook-single .wdt-song-entry-content .alignleft {
  float: left;
  margin: .35em 1em .7em 0;
}

body.wdt-songbook-single .wdt-song-entry-content .alignright {
  float: right;
  margin: .35em 0 .7em 1em;
}

body.wdt-songbook-single .wdt-song-entry-content .aligncenter {
  display: block;
  margin: 1em auto;
}

body.wdt-songbook-single .wdt-songbook-bottombar {
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px 10px;
  color: var(--songbook-card-text);
  background: var(--songbook-bar);
  border-top: 1px solid var(--songbook-card-line);
}

body.wdt-songbook-single .wdt-song-footer-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-single .wdt-song-footer-link:hover,
body.wdt-songbook-single .wdt-song-footer-link:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

@media (min-width: 680px) {
  body.wdt-songbook-single .wdt-songbook-content {
    padding: 29px 25px 32px;
  }

  body.wdt-songbook-single .wdt-song-header {
    text-align: center;
  }

  body.wdt-songbook-single .wdt-song-entry-content {
    padding: 27px 29px 30px;
    font-size: 1.05rem;
  }
}

@media (min-width: 980px) {
  body.wdt-songbook-single .wdt-songbook-main {
    padding: 28px 0 58px;
  }

  body.wdt-songbook-single .wdt-songbook-shell {
    border-radius: 14px;
  }

  body.wdt-songbook-single .wdt-songbook-topbar,
  body.wdt-songbook-single .wdt-songbook-bottombar {
    padding-inline: 18px;
  }

  body.wdt-songbook-single .wdt-songbook-content {
    padding: 38px 38px 40px;
  }

  body.wdt-songbook-single .wdt-song-entry-content {
    width: min(100%, 920px);
    margin-inline: auto;
    padding: 34px 38px 38px;
    font-size: 1.08rem;
  }
}

@media (max-width: 430px) {
  body.wdt-songbook-single .wdt-songbook-nav-link,
  body.wdt-songbook-single .wdt-songbook-logout {
    padding-inline: 9px;
  }

  body.wdt-songbook-single .wdt-songbook-nav-link span {
    display: none;
  }

  body.wdt-songbook-single .wdt-songbook-nav-link i,
  body.wdt-songbook-single .wdt-songbook-logout i {
    font-size: .9rem;
  }
}

@media (max-width: 374px) {
  body.wdt-songbook-single .wdt-songbook-topbar {
    gap: 6px;
    padding-inline: 7px;
  }

  body.wdt-songbook-single .wdt-songbook-topbar__group {
    gap: 5px;
  }

  body.wdt-songbook-single .wdt-songbook-nav-link,
  body.wdt-songbook-single .wdt-songbook-logout {
    min-height: 32px;
    padding-inline: 8px;
    font-size: .72rem;
  }

  body.wdt-songbook-single .wdt-song-title {
    font-size: 1.55rem;
  }

  body.wdt-songbook-single .wdt-song-entry-content {
    padding: 15px 12px 18px;
    font-size: .96rem;
  }
}

/* Compatibility with shortcode and plugin markup */

body.wdt-songbook-context .wdt-songbook-topbar,
body.wdt-songbook-context .wdt-songbook-bottombar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

body.wdt-songbook-context .wdt-songbook-topbar .nawigacja,
body.wdt-songbook-context .wdt-songbook-bottombar .nawigacja {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  font: inherit;
}

body.wdt-songbook-context .wdt-songbook-topbar .nawigacja {
  justify-content: flex-start;
}

body.wdt-songbook-context .wdt-songbook-bottombar .nawigacja {
  justify-content: flex-start;
}

body.wdt-songbook-context .nawigacja .nawigacja_link {
  min-height: 34px;
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-context .nawigacja .nawigacja_link.right {
  margin-left: auto;
}

body.wdt-songbook-context .nawigacja .nawigacja_link a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: inherit;
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

body.wdt-songbook-context .nawigacja .nawigacja_link:hover,
body.wdt-songbook-context .nawigacja .nawigacja_link:focus-within {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-context .nawigacja .nawigacja_link.inactive,
body.wdt-songbook-context .nawigacja .nawigacja_link.inactive:hover {
  color: var(--songbook-disabled);
  background: var(--songbook-inactive-surface);
  border-color: var(--songbook-disabled-line);
}

body.wdt-songbook-context .nawigacja .nawigacja_link a::before {
  display: inline-block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  line-height: 1;
}

body.wdt-songbook-context .wdt-songbook-topbar .nawigacja_link:not(.right):not(.js-spiewnik-back) a::before {
  content: "";
}

body.wdt-songbook-context .nawigacja_link.js-spiewnik-back a::before {
  content: "";
}

body.wdt-songbook-context .nawigacja_link .login-logout-link::before {
  content: "";
}

body.wdt-songbook-context .wdt-songbook-bottombar .nawigacja_na_gore::before {
  content: "";
}

body.wdt-songbook-context .wdt-songbook-bottombar .nawigacja_link:last-child:not(.right):not(.js-spiewnik-back) a:not(.nawigacja_na_gore)::before {
  content: "";
}

body.wdt-songbook-context .wdt-songbook-search-slot {
  max-width: 760px;
  margin-inline: auto;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-form,
body.wdt-songbook-context .wdt-songbook-search-slot form {
  position: relative;
  width: 100%;
  max-width: none;
  display: flex !important;
  margin: 0;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-input,
body.wdt-songbook-context .wdt-songbook-search-slot input[type="search"],
body.wdt-songbook-context .wdt-songbook-search-slot input[type="text"] {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  display: block !important;
  padding: 0 54px 0 16px !important;
  appearance: none;
  -webkit-appearance: none;
  color: var(--songbook-heading) !important;
  background: var(--songbook-field) !important;
  border: 1px solid var(--songbook-field-line) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 1px 2px var(--songbook-field-shadow) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  outline: none !important;
  transition: border-color .16s ease, box-shadow .16s ease;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-submit,
body.wdt-songbook-context .wdt-songbook-search-slot button[type="submit"],
body.wdt-songbook-context .wdt-songbook-search-slot input[type="submit"] {
  position: absolute !important;
  z-index: 2;
  top: 5px !important;
  right: 5px !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: var(--songbook-white) !important;
  background: var(--songbook-action) !important;
  border: 0 !important;
  border-radius: 5px !important;
  cursor: pointer;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-icon {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  border: 0 !important;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-submit:hover,
body.wdt-songbook-context .wdt-songbook-search-slot button[type="submit"]:hover {
  background: var(--songbook-action-hover) !important;
}

body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li {
  position: relative;
  min-width: 0;
  min-height: 90px;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  color: var(--songbook-card-text);
  background: var(--songbook-card);
  border: 1px solid var(--songbook-card-line);
  border-radius: 11px;
  box-shadow: 0 5px 12px var(--songbook-card-shadow-color);
  overflow: hidden;
}

body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li > a {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 9px;
  color: inherit;
  font-size: .78rem;
  line-height: 1.28;
  font-weight: 760;
  text-align: center;
  overflow-wrap: anywhere;
}

body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li:hover {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
  box-shadow: 0 8px 17px var(--songbook-hover-shadow);
}

body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li.przypieta {
  color: var(--songbook-pinned-text);
  background: var(--songbook-pinned);
  border-color: var(--songbook-pinned-line);
}

body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li.przypieta:hover {
  color: var(--songbook-white);
  background: var(--songbook-pinned-hover);
  border-color: var(--songbook-pinned-hover);
}

body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li.przypieta::after {
  content: " Przypięta";
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--songbook-white);
  background: var(--songbook-pinned-badge);
  border: 1px solid var(--songbook-badge-line);
  border-radius: 999px;
  font-family: "Font Awesome 6 Free", var(--wdt-body-font);
  font-size: .58rem;
  line-height: 20px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  pointer-events: none;
}

body.wdt-songbook-taxonomy .wdt-category-tags-slot .pokaz_kategorie {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.wdt-songbook-taxonomy .wdt-category-tags-slot .pokaz_kategorie > li {
  min-height: 36px;
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  color: var(--songbook-card-text);
  background: var(--songbook-card);
  border: 1px solid var(--songbook-legacy-card-line);
  border-radius: 999px;
}

body.wdt-songbook-taxonomy .wdt-category-tags-slot .pokaz_kategorie > li > a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: inherit;
  font-size: .8rem;
  line-height: 1.2;
  font-weight: 700;
}

body.wdt-songbook-taxonomy .wdt-category-tags-slot .pokaz_kategorie > li:hover {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-taxonomy .wdt-category-tags-slot .pokaz_kategorie > li.przypieta {
  color: var(--songbook-pinned-text);
  background: var(--songbook-pinned);
  border-color: var(--songbook-pinned-control-line);
}

body.wdt-songbook-taxonomy .wdt-category-tags-slot .pokaz_kategorie > li.przypieta:hover {
  color: var(--songbook-white);
  background: var(--songbook-pinned-hover);
  border-color: var(--songbook-pinned-hover);
}

body.wdt-songbook-taxonomy .wdt-category-sort-slot > label,
body.wdt-songbook-taxonomy .wdt-category-sort-slot label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 12px;
  color: var(--songbook-copy);
  background: var(--songbook-sort-surface);
  border: 1px solid var(--songbook-field-line);
  border-radius: 7px;
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
}

body.wdt-songbook-taxonomy .wdt-category-sort-slot br {
  display: none;
}

body.wdt-songbook-taxonomy .wdt-category-sort-slot input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--songbook-action);
}

body.wdt-songbook-context .wdt-songbook-module-placeholder {
  padding: 24px 16px;
  color: var(--songbook-muted);
  background: var(--songbook-placeholder-surface);
  border: 1px dashed var(--songbook-container-line);
  border-radius: 7px;
  font-size: .84rem;
  line-height: 1.5;
  text-align: center;
}

body.wdt-songbook-context .wdt-songbook-module-placeholder p {
  margin: 0;
}

body.wdt-songbook-home .wdt-songbook-password-content {
  padding: 24px 12px 32px;
}

body.wdt-songbook-home .wdt-songbook-password-content .login-container {
  margin: 0 auto;
}

@media (min-width: 560px) {
  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }

  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li,
  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li > a {
    min-height: 106px;
  }

  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li > a {
    font-size: .87rem;
  }
}

@media (min-width: 820px) {
  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }

  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li,
  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li > a {
    min-height: 124px;
  }

  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li > a {
    font-size: .94rem;
  }
}

@media (max-width: 560px) {
  body.wdt-songbook-taxonomy .wdt-category-sort-slot label {
    width: 100%;
    justify-content: center;
  }
}

body.wdt-songbook-home .wdt-songbook-letter.is-placeholder {
  cursor: default;
  pointer-events: none;
}

body.wdt-songbook-taxonomy .wdt-category-subcategories {
  margin: 0 0 18px;
  padding-top: 0;
  border-top: 0;
}

body.wdt-songbook-taxonomy .wdt-songbook-nav-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
}

body.wdt-songbook-taxonomy .wdt-songbook-nav-link:hover,
body.wdt-songbook-taxonomy .wdt-songbook-nav-link:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-context .wdt-songbook-topbar__group,
body.wdt-songbook-context .wdt-songbook-bottombar__group {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

body.wdt-songbook-context .wdt-songbook-topbar__access,
body.wdt-songbook-context .wdt-songbook-bottombar__access {
  flex: 0 0 auto;
  margin-left: auto;
}

body.wdt-songbook-home .wdt-songbook-nav-link,
body.wdt-songbook-taxonomy .wdt-songbook-nav-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--songbook-card-text);
  background: var(--songbook-control-surface);
  border: 1px solid var(--songbook-card-line-strong);
  border-radius: 7px;
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body.wdt-songbook-home .wdt-songbook-nav-link:hover,
body.wdt-songbook-home .wdt-songbook-nav-link:focus-visible,
body.wdt-songbook-taxonomy .wdt-songbook-nav-link:hover,
body.wdt-songbook-taxonomy .wdt-songbook-nav-link:focus-visible {
  color: var(--songbook-white);
  background: var(--songbook-card-hover);
  border-color: var(--songbook-card-hover);
}

body.wdt-songbook-taxonomy .wdt-songbook-search-slot {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.wdt-songbook-taxonomy .wdt-category-sort-slot {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

body.wdt-songbook-taxonomy .wdt-category-tag--current:not(.wdt-category-tag--pinned) {
  color: var(--songbook-white);
  background: var(--songbook-current);
  border-color: var(--songbook-current);
}

body.wdt-songbook-taxonomy .wdt-category-tag--current.wdt-category-tag--pinned {
  color: var(--songbook-white);
  background: var(--songbook-current-pinned);
  border-color: var(--songbook-current-pinned);
}

body.wdt-songbook-home .wdt-songbook-song-list[hidden],
body.wdt-songbook-home .wdt-songbook-song-list li[hidden] {
  display: none !important;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-form > label,
body.wdt-songbook-context .wdt-songbook-search-slot form > label {
  position: relative;
  width: 100% !important;
  min-width: 0;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-input:focus,
body.wdt-songbook-context .wdt-songbook-search-slot input[type="search"]:focus,
body.wdt-songbook-context .wdt-songbook-search-slot input[type="text"]:focus {
  border-color: var(--songbook-action) !important;
  box-shadow: 0 0 0 3px var(--songbook-action-focus) !important;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-input::placeholder,
body.wdt-songbook-context .wdt-songbook-search-slot input[type="search"]::placeholder,
body.wdt-songbook-context .wdt-songbook-search-slot input[type="text"]::placeholder {
  color: var(--songbook-placeholder) !important;
  opacity: 1;
}

/* Ivory Search results */

body.wdt-songbook-context .is-ajax-search-result,
body.wdt-songbook-context .is-ajax-search-details {
  overflow: hidden;
  margin-top: 6px !important;
  background: var(--songbook-white) !important;
  border: 1px solid var(--songbook-container-line) !important;
  border-radius: 7px !important;
  box-shadow: 0 12px 26px var(--songbook-result-shadow) !important;
  color: var(--songbook-copy) !important;
}

body.wdt-songbook-context .is-ajax-search-post,
body.wdt-songbook-context .is-ajax-search-result .is-search-sections {
  padding: 11px 14px !important;
  border-bottom: 1px solid var(--songbook-divider) !important;
  transition: background .16s ease;
}

body.wdt-songbook-context .is-ajax-search-post:last-child,
body.wdt-songbook-context .is-ajax-search-result .is-search-sections:last-child {
  border-bottom: 0 !important;
}

body.wdt-songbook-context .is-ajax-search-post:hover,
body.wdt-songbook-context .is-ajax-search-result .is-search-sections:hover {
  background: var(--songbook-card) !important;
}

body.wdt-songbook-context .is-ajax-search-post .is-title a,
body.wdt-songbook-context .is-ajax-search-post-title a,
body.wdt-songbook-context .is-ajax-search-result a {
  color: var(--songbook-heading) !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.wdt-songbook-context .is-ajax-search-post .is-title a:hover,
body.wdt-songbook-context .is-ajax-search-post-title a:hover,
body.wdt-songbook-context .is-ajax-search-result a:hover {
  color: var(--songbook-card-hover) !important;
}

body.wdt-songbook-context .is-show-more-results,
body.wdt-songbook-context .is-ajax-search-result .is-show-more-results {
  display: block;
  padding: 11px 14px !important;
  color: var(--songbook-white) !important;
  background: var(--songbook-action) !important;
  border: 0 !important;
  font-weight: 750;
  text-align: center;
}

body.wdt-songbook-context .is-show-more-results:hover,
body.wdt-songbook-context .is-ajax-search-result .is-show-more-results:hover {
  background: var(--songbook-action-hover) !important;
}

@media (max-width: 430px) {
  body.wdt-songbook-context .wdt-songbook-topbar__group,
  body.wdt-songbook-context .wdt-songbook-bottombar__group {
    gap: 6px;
  }
}

body.wdt-songbook-taxonomy .wdt-category-toolbar .wdt-songbook-search-slot {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.wdt-songbook-taxonomy .wdt-category-sort-slot > .wdt-category-sort,
body.wdt-songbook-taxonomy .wdt-category-sort-slot > label {
  width: fit-content !important;
  justify-content: flex-start !important;
  white-space: nowrap;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-submit,
body.wdt-songbook-context .wdt-songbook-search-slot .is-search-icon,
body.wdt-songbook-context .wdt-songbook-search-slot .is-search-icon::before {
  color: var(--songbook-white) !important;
}

body.wdt-songbook-context .wdt-songbook-search-slot .is-search-icon svg,
body.wdt-songbook-context .wdt-songbook-search-slot .is-search-icon svg * {
  color: var(--songbook-white) !important;
  fill: var(--songbook-white) !important;
  stroke: var(--songbook-white) !important;
}

/* Active songbook icon in the site header */

body.wdt-songbook-context .wdt-header-social-link.songbook {
  color: var(--wdt-orange);
  background: var(--songbook-header-icon-background);
  border-color: var(--wdt-line);
}

body.wdt-songbook-context .wdt-header-social-link.songbook:hover,
body.wdt-songbook-context .wdt-header-social-link.songbook:focus-visible {
  color: var(--songbook-white);
  background: var(--wdt-orange);
  border-color: var(--wdt-orange);
}

@media (max-width: 679px) {
  body.wdt-songbook-taxonomy .wdt-category-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
}

body.wdt-songbook-taxonomy .wdt-category-header--has-subcategories {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (min-width: 560px) {
  body.wdt-songbook-taxonomy .wdt-category-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }

  body.wdt-songbook-taxonomy .wdt-category-song {
    min-height: 106px;
  }

  body.wdt-songbook-taxonomy .wdt-category-song__link {
    min-height: 106px;
    font-size: .87rem;
  }
}

@media (min-width: 820px) {
  body.wdt-songbook-taxonomy .wdt-category-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
  }

  body.wdt-songbook-taxonomy .wdt-category-song {
    min-height: 124px;
  }

  body.wdt-songbook-taxonomy .wdt-category-song__link {
    min-height: 124px;
    font-size: .94rem;
  }
}

body.wdt-songbook-taxonomy .wdt-category-song__title {
  display: block;
}

body.wdt-songbook-taxonomy .wdt-category-song--pinned .wdt-category-song__link {
  padding: 12px 9px;
  color: var(--songbook-pinned-text);
  background: var(--songbook-pinned);
  border-color: var(--songbook-pinned-line);
}

body.wdt-songbook-taxonomy .wdt-category-song--pinned .wdt-category-song__link:hover,
body.wdt-songbook-taxonomy .wdt-category-song--pinned .wdt-category-song__link:focus-visible {
  color: var(--songbook-pinned-hover-text);
  background: var(--songbook-pinned-hover);
  border-color: var(--songbook-pinned-hover);
  box-shadow: 0 8px 17px var(--songbook-pinned-shadow);
}

body.wdt-songbook-taxonomy .wdt-category-song__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  color: var(--songbook-white);
  background: var(--songbook-pinned-badge);
  border: 1px solid var(--songbook-badge-line);
  border-radius: 999px;
  font-size: .58rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  pointer-events: none;
}

body.wdt-songbook-taxonomy .wdt-category-song--pinned .wdt-category-song__link:hover .wdt-category-song__badge,
body.wdt-songbook-taxonomy .wdt-category-song--pinned .wdt-category-song__link:focus-visible .wdt-category-song__badge {
  background: var(--songbook-pinned-badge);
}

/* Shared states and compact navigation */

body.wdt-songbook-context [data-wdt-songbook-back][aria-disabled="true"],
body.wdt-songbook-context [data-wdt-songbook-back].is-disabled {
  opacity: .42;
  filter: grayscale(.8);
  pointer-events: none;
  cursor: default;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 560px) {
  body.wdt-songbook-home .wdt-songbook-category-card__badge,
  body.wdt-songbook-taxonomy .wdt-category-song__badge {
    top: 4px;
    right: 4px;
    min-height: 16px;
    gap: 3px;
    padding: 0 4px;
    font-size: .46rem;
    letter-spacing: .025em;
  }

  body.wdt-songbook-home .wdt-songbook-category-card__badge i,
  body.wdt-songbook-taxonomy .wdt-category-song__badge i {
    font-size: .48rem;
  }

  body.wdt-songbook-home .wdt-songbook-category-slot .pokaz_kategorie > li.przypieta::after {
    top: 4px;
    right: 4px;
    min-height: 16px;
    padding: 0 4px;
    font-size: .46rem;
    line-height: 16px;
    letter-spacing: .025em;
  }
}

@media (max-width: 430px) {
  body.wdt-songbook-single .wdt-songbook-topbar .wdt-songbook-nav-link span {
    display: inline;
  }
}

body.wdt-songbook-context .wdt-songbook-topbar [data-wdt-songbook-back] i,
body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-topbar__home i {
  width: 1em;
  flex: 0 0 1em;
  font-size: .9rem;
  line-height: 1;
  text-align: center;
}

@media (max-width: 374px) {
  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-topbar__home span,
  body.wdt-songbook-context .wdt-songbook-topbar [data-wdt-songbook-back] span {
    display: none;
  }

  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-topbar__home,
  body.wdt-songbook-context .wdt-songbook-topbar [data-wdt-songbook-back] {
    min-width: 32px;
    padding-inline: 8px;
  }
}

body.wdt-songbook-context .wdt-songbook-topbar {
  min-height: 50px;
  box-sizing: border-box;
  padding: 8px 10px;
  gap: 10px;
}

body.wdt-songbook-context .wdt-songbook-topbar__group {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-nav-link,
body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-logout {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border-width: 1px;
  border-style: solid;
  border-radius: 7px;
  font-size: .78rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-nav-link > i,
body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-logout > i {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: .9rem;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-nav-link > span {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 430px) {
  body.wdt-songbook-context .wdt-songbook-topbar {
    min-height: 48px;
    padding: 7px;
    gap: 6px;
  }

  body.wdt-songbook-context .wdt-songbook-topbar__group {
    gap: 6px;
  }

  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-nav-link,
  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-logout {
    height: 34px;
    min-height: 34px;
    padding: 0 9px;
    gap: 6px;
    font-size: .76rem;
  }

  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-nav-link > i,
  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-logout > i {
    font-size: .88rem;
  }
}

@media (max-width: 374px) {
  body.wdt-songbook-context .wdt-songbook-topbar {
    min-height: 46px;
    padding-inline: 7px;
    gap: 6px;
  }

  body.wdt-songbook-context .wdt-songbook-topbar__group {
    gap: 5px;
  }

  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-nav-link,
  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-logout {
    height: 32px;
    min-height: 32px;
    padding-inline: 8px;
    gap: 5px;
    font-size: .72rem;
  }

  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-nav-link > i,
  body.wdt-songbook-context .wdt-songbook-topbar .wdt-songbook-logout > i {
    font-size: .84rem;
  }
}
