:root {
  --dh-shell-sidebar-width: 286px;
  --dh-shell-sidebar-bg: linear-gradient(180deg, #f1f3f5, #e5e9ed 58%, #dfe4e8);
  --dh-shell-sidebar-line: rgba(57, 67, 78, 0.16);
  --dh-shell-sidebar-text: #2d3741;
  --dh-shell-sidebar-muted: #68737e;
  --dh-shell-sidebar-panel: rgba(255, 255, 255, 0.54);
  --dh-shell-sidebar-panel-hover: rgba(255, 255, 255, 0.82);
  --dh-shell-sidebar-active: #d5dde5;
  --dh-shell-sidebar-active-line: #8da0b1;
  --dh-shell-focus: 0 0 0 3px rgba(82, 111, 136, 0.28);
}

body.dh-shell-page {
  min-height: 100dvh;
  margin: 0;
  padding-left: var(--dh-shell-sidebar-width);
  overflow-x: hidden;
}

body.dh-shell-page .dh-shell-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--dh-shell-sidebar-width);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--dh-shell-sidebar-line);
  background: var(--dh-shell-sidebar-bg);
  color: var(--dh-shell-sidebar-text);
  box-shadow: 20px 0 44px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  z-index: 30;
}

body.dh-shell-page .dh-shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 6px 6px 14px;
  border-bottom: 1px solid var(--dh-shell-sidebar-line);
  text-decoration: none;
  color: inherit;
}

body.dh-shell-page .dh-shell-brand img {
  width: 216px;
  max-width: 100%;
  height: auto;
  flex: 0 1 auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

body.dh-shell-page .dh-shell-brand strong,
body.dh-shell-page .dh-shell-current strong,
body.dh-shell-page .dh-shell-nav-link strong,
body.dh-shell-page .dh-shell-footer a {
  display: block;
}

body.dh-shell-page .dh-shell-brand strong {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

body.dh-shell-page .dh-shell-current small,
body.dh-shell-page .dh-shell-nav-group-title,
body.dh-shell-page .dh-shell-nav-link small,
body.dh-shell-page .dh-shell-footer small {
  color: var(--dh-shell-sidebar-muted);
}

body.dh-shell-page .dh-shell-current {
  display: grid;
  gap: 4px;
  padding: 0 6px 4px;
}

body.dh-shell-page .dh-shell-current p,
body.dh-shell-page .dh-shell-current strong,
body.dh-shell-page .dh-shell-current small,
body.dh-shell-page .dh-shell-nav-group-title,
body.dh-shell-page .dh-shell-footer a,
body.dh-shell-page .dh-shell-footer small {
  margin: 0;
}

body.dh-shell-page .dh-shell-current p,
body.dh-shell-page .dh-shell-nav-group-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.dh-shell-page .dh-shell-current strong {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 920;
}

body.dh-shell-page .dh-shell-nav {
  min-height: 0;
  display: grid;
  gap: 16px;
  overflow: auto;
  padding-right: 2px;
}

body.dh-shell-page .dh-shell-nav-group {
  display: grid;
  gap: 8px;
}

body.dh-shell-page .dh-shell-nav-list {
  display: grid;
  gap: 6px;
}

body.dh-shell-page .dh-shell-nav-link {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--dh-shell-sidebar-panel);
  color: inherit;
  padding: 10px 12px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

body.dh-shell-page .dh-shell-nav-link:hover {
  transform: translateX(1px);
  border-color: rgba(57, 67, 78, 0.16);
  background: var(--dh-shell-sidebar-panel-hover);
}

body.dh-shell-page .dh-shell-nav-link.is-active,
body.dh-shell-page .dh-shell-nav-link[aria-current="page"] {
  border-color: var(--dh-shell-sidebar-active-line);
  background: var(--dh-shell-sidebar-active);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.dh-shell-page .dh-shell-nav-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

body.dh-shell-page .dh-shell-nav-link span {
  min-width: 0;
}

body.dh-shell-page .dh-shell-nav-link strong {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 860;
}

body.dh-shell-page .dh-shell-nav-link small {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
}

body.dh-shell-page .dh-shell-footer {
  display: grid;
  gap: 4px;
  padding: 12px 6px 2px;
  border-top: 1px solid var(--dh-shell-sidebar-line);
}

body.dh-shell-page .dh-shell-footer a {
  color: var(--dh-shell-sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 820;
}

body.dh-shell-page .dh-shell-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(57, 67, 78, 0.16);
  border-radius: 10px;
  background: rgba(241, 244, 247, 0.96);
  color: var(--dh-shell-sidebar-text);
  box-shadow: 0 12px 24px rgba(57, 67, 78, 0.18);
}

body.dh-shell-page .dh-shell-toggle svg {
  width: 20px;
  height: 20px;
}

body.dh-shell-page .dh-shell-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  border: 0;
  background: rgba(45, 55, 65, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.dh-shell-page.is-dh-shell-open .dh-shell-scrim {
  opacity: 1;
  pointer-events: auto;
}

body.dh-shell-page:focus-within .dh-shell-toggle:focus-visible,
body.dh-shell-page .dh-shell-nav-link:focus-visible,
body.dh-shell-page .dh-shell-brand:focus-visible,
body.dh-shell-page .dh-shell-footer a:focus-visible,
body.dh-shell-page .dh-shell-toggle:focus-visible {
  outline: none;
  box-shadow: var(--dh-shell-focus);
}

@media (max-width: 960px) {
  body.dh-shell-page {
    padding-left: 0;
  }

  body.dh-shell-page .dh-shell-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--dh-shell-sidebar-width), 88vw);
    transform: translateX(-104%);
    transition: transform 220ms ease;
    z-index: 55;
  }

  body.dh-shell-page.is-dh-shell-open .dh-shell-sidebar {
    transform: translateX(0);
  }

  body.dh-shell-page .dh-shell-toggle,
  body.dh-shell-page .dh-shell-scrim {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dh-shell-page .dh-shell-sidebar,
  body.dh-shell-page .dh-shell-toggle,
  body.dh-shell-page .dh-shell-scrim,
  body.dh-shell-page .dh-shell-nav-link {
    transition-duration: 0.01ms !important;
  }
}

/* Shared taxonomy presentation used by every content library. */
.content-tag-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #cfd8d3;
  border-radius: 4px;
  background: #f4f7f5;
  color: #3f5a4c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.song-card-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.content-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-width: 100%; }
.content-tag-filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; max-width: 100%; }
.content-tag-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid #cfd8d3; border-radius: 4px; background: #fff; color: #3f5a4c; font-size: 12px; font-weight: 750; cursor: pointer; }
.content-tag-filter[aria-pressed="true"] { border-color: #6d9882; background: #eaf4ee; color: #24543d; }
.content-tag-filter span { color: #7b8b82; font-size: 11px; font-variant-numeric: tabular-nums; }
