:root {
  --page-max-width: 1120px;
  --page-padding: 1rem;
  --border-color: #d0d0d0;
  --code-bg: #f4f4f4;
  --nav-bg: #f8f8f8;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  width: 100%;
  /* Houd de verticale scrollbar-gutter vast, zodat die niet
     “van de pagina af” schuift bij brede tabellen. */
  scrollbar-gutter: stable;
  overflow-x: hidden;
  /* Ankers / scrollIntoView houden rekening met sticky site-nav + Oefenhoek-header. */
  scroll-padding-top: calc(
    var(--site-chrome-height, 0px) + var(--oefenhoek-header-height, 0px) + 0.5rem
  );
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.55;
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: #111111;
  background: #ffffff;
}

/* Header + eventuele subnav blijven zichtbaar tijdens scrollen. */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--nav-bg);
  box-shadow: 0 1px 0 var(--border-color);
}

/* Sticky broodkruimels onder de site-nav (zonder publicatiestatus-box). */
.oefenhoek-header {
  position: sticky;
  top: var(--site-chrome-height, 0px);
  z-index: 90;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.oefenhoek-header-inner {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding:
    0.45rem
    max(var(--page-padding), env(safe-area-inset-right))
    0.5rem
    max(var(--page-padding), env(safe-area-inset-left));
}

.oefenhoek-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.oefenhoek-breadcrumb-link {
  color: #003366;
  text-decoration: none;
}

.oefenhoek-breadcrumb-link:hover,
.oefenhoek-breadcrumb-link:focus {
  text-decoration: underline;
}

.oefenhoek-breadcrumb-sep {
  color: #666666;
  user-select: none;
}

.oefenhoek-breadcrumb-current {
  color: #111111;
  font-weight: 600;
}

.page {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding:
    1.25rem
    max(var(--page-padding), env(safe-area-inset-right))
    3rem
    max(var(--page-padding), env(safe-area-inset-left));
}

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background: var(--nav-bg);
}

.site-chrome .site-header {
  border-bottom: none;
}

.site-chrome .site-subnav {
  border-top: 1px solid var(--border-color);
}

.site-header-inner {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding:
    0.75rem
    max(var(--page-padding), env(safe-area-inset-right))
    0.75rem
    max(var(--page-padding), env(safe-area-inset-left));
}

.site-header-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
}

.site-logo img {
  display: block;
  height: 1.6rem;
  width: auto;
}

.site-logo:hover,
.site-logo:focus {
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.site-nav a {
  color: #003366;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #eee;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

.site-nav-group {
  position: relative;
}

.site-nav-group summary {
  color: #003366;
  white-space: nowrap;
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}

.site-nav-group summary::-webkit-details-marker {
  display: none;
}

.site-nav-group summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.35em;
  vertical-align: middle;
  border: 0.28em solid transparent;
  border-top-color: currentColor;
}

.site-nav-group[open] summary,
.site-nav-group summary:hover,
.site-nav-group summary:focus {
  background: #eee;
}

.site-nav-group.is-current summary {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

.site-nav-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 16rem;
  max-height: min(70vh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.site-subnav {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.site-subnav-inner {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding:
    0.45rem
    max(var(--page-padding), env(safe-area-inset-right))
    0.45rem
    max(var(--page-padding), env(safe-area-inset-left));
}

.site-subnav a {
  color: #003366;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
}

.site-subnav a:hover,
.site-subnav a:focus {
  background: #eee;
  text-decoration: none;
}

.site-subnav a[aria-current="page"] {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

.page-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

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

.oefenhoek-voorzien {
  color: #555;
}

.oefenhoek-voorzien-tag {
  font-size: 0.9em;
  color: #777;
}

.oefenhoek-alias-tag {
  font-size: 0.9em;
  color: #555;
  margin-left: 0.35rem;
}

.oefenhoek-alias-banner {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid #2f5d8a;
  background: #eef5fb;
  color: #12324d;
  font-size: 0.95rem;
}

.oefenhoek-alias-banner-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.oefenhoek-alias-banner p {
  margin: 0.35rem 0 0;
}


/* Homepagina: kruis + titel + korte feedbackregel */
.home-banner {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 2px solid #2f5d8a;
  background: linear-gradient(135deg, #eef5fb 0%, #f7fafc 55%, #fff 100%);
  color: #12324d;
}

.home-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.home-banner-cross {
  display: block;
  flex: 0 0 auto;
  width: 4.5rem;
  height: auto;
  max-height: 6.25rem;
  object-fit: contain;
}

.home-banner-text {
  flex: 1 1 14rem;
  min-width: 0;
}

.home-banner-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: #003366;
  letter-spacing: 0.01em;
}

.home-banner-feedback {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #23405a;
}

.home-banner-feedback p {
  margin: 0;
}

.home-banner-feedback a {
  color: #003366;
  font-weight: 600;
}

@media (max-width: 520px) {
  .home-banner {
    padding: 0.85rem 0.95rem;
  }

  .home-banner-cross {
    width: 3.5rem;
    max-height: 4.75rem;
  }

  .home-banner-title {
    font-size: 1.2rem;
  }
}

code.catalogus-id {
  margin-left: 0.5rem;
  font-size: 0.85em;
  color: #555;
}

.catalogus-id-line {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.9rem;
  color: #444;
}

.catalogus-id-line code.catalogus-id {
  margin-left: 0.25rem;
}

.catalogus-overzicht,
.catalogus-special,
.catalogus-referentie {
  margin-top: 0.75rem;
}

.catalogus-referentie-count {
  font-weight: normal;
  font-size: 0.9em;
  color: #555;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: stretch;
  margin: 0.4rem 0 0.75rem;
}

.nav-buttons .btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.2;
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  color: #003366;
}

.nav-buttons .btn:hover,
.nav-buttons .btn:focus {
  background: #eee;
}

.site-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Header-zoeken */
.site-zoek {
  position: relative;
  flex: 0 0 auto;
}

.site-zoek-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.site-zoek-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #003366;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
}

.site-zoek-toggle:hover,
.site-zoek-toggle:focus {
  background: #eee;
}

.site-zoek-toggle[aria-expanded="true"] {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

.site-zoek-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.site-zoek-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.75rem;
}

.site-zoek-panel[hidden] {
  display: none !important;
}

.site-zoek-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.site-zoek-dialog {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  max-height: min(85vh, 40rem);
  margin-top: max(0.5rem, calc(var(--site-chrome-height, 3.5rem) + 0.35rem));
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 0.85rem 1rem 1rem;
}

.site-zoek-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.site-zoek-heading {
  margin: 0;
  font-size: 1.05rem;
}

.site-zoek-close {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 4px;
  font-size: 1.25rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.site-zoek-close:hover,
.site-zoek-close:focus {
  background: #eee;
}

.site-zoek .catalogus-zoek-form {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.site-zoek .catalogus-zoek-resultaten {
  margin-top: 0.35rem;
}

body.site-zoek-open {
  overflow: hidden;
}

.site-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #003366;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.site-jump:hover,
.site-jump:focus {
  text-decoration: underline;
}

.site-jump-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  max-width: 1.1rem;
  flex-shrink: 0;
}

.site-jump-label {
  font-size: 0.8rem;
}

.site-footer {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 2rem auto 0;
  padding:
    0
    max(var(--page-padding), env(safe-area-inset-right))
    2rem
    max(var(--page-padding), env(safe-area-inset-left));
  border-top: 1px solid var(--border-color);
}

.site-meta {
  margin-top: 1rem;
}

.build-time-stamp,
.page-git-date {
  color: #666666;
  font-size: 0.75rem;
  margin: 0.25rem 0 0;
}

.build-time-stamp:first-child,
.page-git-date:first-child {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.2;
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  max-width: 100%;
}

code {
  font-family: Consolas, monospace;
  font-size: 0.95em;
}

/* Tabellen: wrappen in .table-scroll (render-table.html).
   Sticky thead hoort BIJ DE TABEL, niet bij de viewport: anders blijft
   de header van een vorige tabel aan de onderkant plakken en schuift
   die over de volgende sectie (eerste rij “onder” de header).
   Lange tabellen scrollen in de wrapper; korte passen zonder balk. */
.table-scroll {
  max-width: 100%;
  max-height: min(70vh, 36rem);
  margin: 1rem 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.table-scroll table,
.page table {
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.page > table {
  margin: 1rem 0;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
  box-shadow: inset 0 -1px 0 var(--border-color);
}

/* Opt-out via shortcode table-plain: geen nested scroll, sticky kop of
   volle paginabreedte. Andere tabellen blijven .table-scroll. */
.table-plain .table-scroll {
  max-height: none;
  overflow: visible;
  scrollbar-gutter: auto;
}

.table-plain .table-scroll table,
.table-plain table {
  width: auto;
}

.table-plain .table-scroll thead th {
  position: static;
  background: transparent;
  box-shadow: none;
}

.werkvoorraad-body {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable;
  margin-top: 0.75rem;
}

img,
svg:not(.site-jump-icon),
.vsa-notation {
  max-width: 100%;
  height: auto;
}

.vsa-container {
  margin: 1.25rem 0;
  max-width: 100%;
  overflow-x: auto;
}

.vsa-notation {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  background: #ffffff;
}

.oefenhoek-page .vsa-container {
  overflow-x: hidden;
}

.oefenhoek-page .vsa-notation {
  width: 100%;
  box-sizing: border-box;
}

.pdf-sheet-pages {
  overflow: hidden;
  min-width: 0;
}

.pdf-sheet-pages canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

.pdf-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin: 0.75rem 0 0;
}

.score-actions,
.mxl-download {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  align-items: stretch;
  margin: 1.15rem 0;
}

.score-actions .btn,
.score-actions .score-action-menu-trigger,
a.btn.coria-play,
.pdf-sheet-actions a,
.mxl-download a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 51, 102, 0.18);
  cursor: pointer;
  font-family: inherit;
}

.score-actions .btn,
.score-actions .score-action-menu,
.score-actions .score-action-menu-trigger,
a.btn.coria-play {
  flex: 1 1 9rem;
}

.score-actions .btn,
.score-actions .score-action-menu-trigger,
a.btn.coria-play,
.pdf-sheet-actions a,
.mxl-download a {
  background: #e8f1fa;
  border: 2px solid #003366;
  color: #003366;
}

.score-actions .btn:hover,
.score-actions .btn:focus,
.score-actions .score-action-menu-trigger:hover,
.score-actions .score-action-menu-trigger:focus,
a.btn.coria-play:hover,
a.btn.coria-play:focus,
.pdf-sheet-actions a:hover,
.pdf-sheet-actions a:focus,
.mxl-download a:hover,
.mxl-download a:focus {
  background: #d4e6f7;
  color: #003366;
  text-decoration: none;
}

/* Bibliotheek-context: groene actieknoppen */
.oefenhoek-acties--catalogus .btn,
.oefenhoek-acties--catalogus .score-action-menu-trigger,
.oefenhoek-acties--catalogus a.btn.coria-play,
.catalogus-page .score-actions .btn,
.catalogus-page .score-actions .score-action-menu-trigger,
.catalogus-page a.btn.coria-play {
  background: #e8f5ec;
  border-color: #1b5e20;
  color: #1b5e20;
  box-shadow: 0 1px 3px rgba(27, 94, 32, 0.18);
}

.oefenhoek-acties--catalogus .btn:hover,
.oefenhoek-acties--catalogus .btn:focus,
.oefenhoek-acties--catalogus .score-action-menu-trigger:hover,
.oefenhoek-acties--catalogus .score-action-menu-trigger:focus,
.oefenhoek-acties--catalogus a.btn.coria-play:hover,
.oefenhoek-acties--catalogus a.btn.coria-play:focus,
.catalogus-page .score-actions .btn:hover,
.catalogus-page .score-actions .btn:focus,
.catalogus-page .score-actions .score-action-menu-trigger:hover,
.catalogus-page .score-actions .score-action-menu-trigger:focus,
.catalogus-page a.btn.coria-play:hover,
.catalogus-page a.btn.coria-play:focus {
  background: #d4edd9;
  color: #1b5e20;
}

.score-action-menu {
  position: relative;
  display: flex;
  flex: 1 1 9rem;
}

.score-action-menu > .btn {
  width: 100%;
}

.score-action-menu-trigger {
  width: 100%;
}

.score-action-help {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 0.4rem);
  /* Boven sticky site-chrome (100) + oefenhoek-header (90), anders
     verdwijnen de eerste zinnen onder die balken bij knoppen bovenaan. */
  z-index: 110;
  width: max(100%, 16rem);
  max-width: min(22rem, 90vw);
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.4;
  color: #223344;
  background: #fffef8;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.score-action-help::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #fffef8;
  filter: drop-shadow(0 1px 0 var(--border-color));
}

/* Te weinig ruimte boven de knop (viewport / sticky chrome): onder openen. */
.score-action-help.score-action-help--below {
  bottom: auto;
  top: calc(100% + 0.4rem);
}

.score-action-help.score-action-help--below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #fffef8;
  filter: drop-shadow(0 -1px 0 var(--border-color));
}

.score-action-menu:hover > .score-action-help,
.score-action-menu:focus-within > .score-action-help {
  display: block;
}

.oefenhoek-acties--catalogus .score-action-help,
.catalogus-page .score-action-help {
  color: #2e4a32;
  border-color: #9bbb9f;
}

.score-action-menu-panel {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  top: 100%;
  z-index: 20;
  min-width: max(100%, 17rem);
  width: max-content;
  max-width: min(22rem, 90vw);
  max-height: min(70vh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0.2rem 0 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 2px solid #003366;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.18);
}

.oefenhoek-acties--catalogus .score-action-menu-panel,
.catalogus-page .score-action-menu-panel {
  border-color: #1b5e20;
  box-shadow: 0 4px 14px rgba(27, 94, 32, 0.16);
}

.score-action-menu:hover .score-action-menu-panel,
.score-action-menu:focus-within .score-action-menu-panel {
  display: block;
}

.score-bundle.is-bron-view [data-score-role="download"],
.score-bundle.is-bron-view [data-score-role="print"] {
  display: none;
}

.score-action-menu--bron-mode {
  display: none;
}

.score-bundle.is-bron-view .score-action-menu--bron-mode {
  display: flex;
}

.score-bron-panel {
  margin: 0.75rem 0 1.25rem;
  max-width: 100%;
}

.score-bron-text {
  margin: 0;
  max-height: min(70vh, 40rem);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.45;
}

.score-bron-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.score-action-menu-hint {
  padding: 0.45rem 0.9rem 0.35rem;
  color: #445566;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
}

.oefenhoek-acties--catalogus .score-action-menu-hint,
.catalogus-page .score-action-menu-hint {
  color: #3d5a40;
}

.score-action-menu-panel a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: #003366;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.score-action-menu-label {
  display: block;
}

.score-action-menu-detail {
  display: block;
  margin-top: 0.15rem;
  color: #445566;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.3;
}

.oefenhoek-acties--catalogus .score-action-menu-panel a,
.catalogus-page .score-action-menu-panel a {
  color: #1b5e20;
}

.oefenhoek-acties--catalogus .score-action-menu-detail,
.catalogus-page .score-action-menu-detail {
  color: #3d5a40;
}

.score-action-menu-panel a:hover,
.score-action-menu-panel a:focus {
  background: #e8f1fa;
  text-decoration: none;
}

.oefenhoek-acties--catalogus .score-action-menu-panel a:hover,
.oefenhoek-acties--catalogus .score-action-menu-panel a:focus,
.catalogus-page .score-action-menu-panel a:hover,
.catalogus-page .score-action-menu-panel a:focus {
  background: #e8f5ec;
}

/* Beluisteren: sticky speler onderaan */
body.score-audio-bar-open {
  padding-bottom: var(--score-audio-bar-height, 5.5rem);
}

.score-audio-bar {
  --score-audio-bar-height: 5.5rem;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #f0f4f8;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.score-audio-bar-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0.55rem var(--page-padding) 0.65rem;
}

.score-audio-bar-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #003366;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-audio-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.score-audio-bar-btn {
  flex: 0 0 auto;
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #003366;
}

.score-audio-bar-btn:hover,
.score-audio-bar-btn:focus {
  background: #e8f1fa;
  outline: none;
}

.score-audio-bar-close {
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem 0.55rem;
  margin-left: auto;
}

.score-audio-bar-icon--play {
  display: none;
}

.score-audio-bar--paused .score-audio-bar-icon--pause {
  display: none;
}

.score-audio-bar--paused .score-audio-bar-icon--play {
  display: inline;
}

.score-audio-bar-time {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: #445566;
  white-space: nowrap;
}

.score-audio-bar-seek {
  flex: 1 1 6rem;
  min-width: 4rem;
  margin: 0;
  accent-color: #003366;
}

.score-audio-bar-rate {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: #445566;
}

.score-audio-bar-rate-select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
}

.score-audio-bar-element {
  display: none;
}

.catalogus-page .score-audio-bar-title,
.catalogus-page .score-audio-bar-btn {
  color: #1b5e20;
}

.catalogus-page .score-audio-bar {
  background: #eef6f0;
}

.catalogus-page .score-audio-bar-seek {
  accent-color: #1b5e20;
}

@media (max-width: 520px) {
  body.score-audio-bar-open {
    padding-bottom: 7.25rem;
  }

  .score-audio-bar {
    --score-audio-bar-height: 7.25rem;
  }

  .score-audio-bar-rate-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .score-audio-bar-close {
    margin-left: 0;
  }
}

.handleiding-cue {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem 1rem;
  background: #f4f7fb;
  border: 1px solid #c5d4e6;
  border-left: 5px solid #003366;
  border-radius: 4px;
}

.handleiding-cue-label {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #003366;
}

.handleiding-cue-body {
  margin: 0;
}

.handleiding-cue-body > *:first-child {
  margin-top: 0;
}

.handleiding-cue-body > *:last-child {
  margin-bottom: 0;
}

.handleiding-cue-body ol,
.handleiding-cue-body ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}

.handleiding-cue-body li {
  margin: 0.2rem 0;
}

.handleiding-cue-body code {
  font-size: 0.9em;
}

.pdf-sheet-print-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  overflow: hidden;
}

@media (min-width: 1400px) {
  :root {
    --page-max-width: 1280px;
  }

  html {
    font-size: 19px;
  }
}

@media (max-width: 900px) {
  :root {
    --page-max-width: none;
    --page-padding: 0.9rem;
  }

  html {
    font-size: 17px;
  }

  .site-nav {
    gap: 0.45rem 0.75rem;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 0.75rem;
  }

  html {
    font-size: 16px;
  }

  .page {
    max-width: none;
    margin: 0;
    padding-top: 1rem;
  }

  .site-nav {
    max-width: 100%;
    margin: 0;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-start {
    width: 100%;
  }

  .site-zoek {
    order: 2;
  }

  .site-zoek-panel {
    padding: 0;
  }

  .site-zoek-dialog {
    width: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    min-height: 100%;
    box-shadow: none;
  }

  .site-zoek-backdrop {
    display: none;
  }

  .site-jumps {
    width: 100%;
  }

  .site-nav a,
  .site-nav-group summary {
    font-size: 0.75rem;
    padding: 0.12rem 0.35rem;
  }

  .nav-buttons {
    gap: 0.2rem;
    margin: 0.3rem 0 0.5rem;
  }

  .nav-buttons .btn {
    font-size: 0.75rem;
    padding: 0.1rem 0.35rem;
    line-height: 1.15;
  }

  .nav-buttons .btn br {
    display: none;
  }

  pre {
    padding: 0.75rem;
  }

  th, td {
    padding: 0.35rem 0.45rem;
  }
}

/* Print / A4 */
@media print {
  @page {
    size: A4;
    margin: 2cm;
  }

  .pagebreak {
    page-break-before: always;
  }

  .site-header,
  .site-chrome,
  .site-nav,
  .site-subnav,
  .site-zoek,
  .site-jumps,
  .nav-buttons,
  .score-actions,
  .score-audio-bar,
  .publicatiestatus,
  .publicatiestatus-tip,
  .oefenhoek-header,
  .werkvoorraad,
  footer {
    display: none;
  }

  .web-only { display: none; }

  .keep-together {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Lege alinea's uit markdown mogen geen extra ruimte in de afdruk geven. */
  .keep-together > p:empty,
  .print-only > p:empty {
    display: none;
    margin: 0;
    padding: 0;
  }

  .keep-together .vsa-notation {
    width: var(--vsa-scale, auto);
  }
}

.page-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  margin: 0 0 0.75rem;
}

.page-title-row h1 {
  margin: 0;
}

.publicatiestatus-tip {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
}

.publicatiestatus-tip-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid #aab;
  border-radius: 50%;
  background: #fff;
  color: #445;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.publicatiestatus-tip-trigger::-webkit-details-marker {
  display: none;
}

.publicatiestatus-tip-trigger::marker {
  content: "";
}

.publicatiestatus-tip-trigger:hover,
.publicatiestatus-tip-trigger:focus {
  background: #f0f4f8;
  border-color: #789;
  outline: none;
}

.publicatiestatus-tip[open] > .publicatiestatus-tip-trigger {
  background: #003366;
  border-color: #003366;
  color: #fff;
}

.publicatiestatus-tip-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
  width: max(16rem, 100%);
  max-width: min(22rem, 92vw);
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: #223344;
  background: #fffef8;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.publicatiestatus-tip-panel p {
  margin: 0 0 0.45rem;
}

.publicatiestatus-tip-panel p:last-child {
  margin-bottom: 0;
}

.publicatiestatus-tip-feedback a {
  color: #003366;
}

.catalogus-page .publicatiestatus-tip-panel {
  color: #2e4a32;
  border-color: #9bbb9f;
}

.hub-product-banner,
.partituur-product-banner {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid #b00020;
  background: #fde8eb;
  color: #3b0008;
  font-size: 0.95rem;
}

.hub-product-banner-title,
.partituur-product-banner-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.hub-product-banner ul,
.partituur-product-banner ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.2rem;
}

.hub-product-banner-cmd,
.partituur-product-banner-cmd {
  margin: 0.35rem 0 0.75rem;
  padding: 0.5rem 0.65rem;
  background: #fff;
  border: 1px solid #c9a0a8;
  overflow-x: auto;
  font-size: 0.85rem;
}

.artefacten-handmatig-banner {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid #6d4c00;
  background: #fff6e0;
  color: #3d2a00;
  font-size: 0.95rem;
}

.artefacten-handmatig-banner-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.artefacten-handmatig-banner p {
  margin: 0.35rem 0 0;
}

/* Titel komt uit het template; verberg herhaalde #-titel in de markdown. */
.oefenhoek-page .oefenhoek-body > h1:first-child {
  display: none;
}

.werkvoorraad {
  margin: 2rem 0 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
}

.werkvoorraad summary {
  cursor: pointer;
  font-weight: 600;
}

.print-only { display: none; }

@media print {
  .print-only { display: block; }
}

/* Bibliotheek-zoeken */
.catalogus-zoek-form {
  margin: 1.25rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--nav-bg);
}

.catalogus-zoek-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.catalogus-zoek-rij {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.catalogus-zoek-rij input[type="search"] {
  flex: 1 1 16rem;
  min-width: 0;
  font: inherit;
  padding: 0.4rem 0.55rem;
}

.catalogus-zoek-rij > button[type="submit"] {
  font: inherit;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.catalogus-zoek-meta {
  color: #444;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.catalogus-zoek-lijst {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.catalogus-zoek-lijst li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--border-color);
}

.catalogus-zoek-id-rij {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  min-width: 0;
}

.catalogus-zoek-play-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
  position: relative;
}

.catalogus-zoek-play {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  color: #003366;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.catalogus-zoek-play:hover,
.catalogus-zoek-play:focus {
  background: #eee;
}

.catalogus-zoek-play.is-playing {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

.catalogus-zoek-play--empty {
  visibility: hidden;
  pointer-events: none;
  border: none;
  background: transparent;
}

.catalogus-zoek-rate {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.catalogus-zoek-rate-trigger {
  min-width: 2.1rem;
  height: 1.6rem;
  padding: 0 0.25rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  color: #445;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.catalogus-zoek-rate-trigger:hover,
.catalogus-zoek-rate-trigger:focus {
  background: #f0f4f8;
  border-color: #789;
  outline: none;
}

.catalogus-zoek-rate-panel {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 45;
  width: max(14rem, 100%);
  max-width: min(18rem, 92vw);
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: #223344;
  background: #fffef8;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.catalogus-zoek-rate-panel p {
  margin: 0 0 0.5rem;
}

.catalogus-zoek-rate-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.catalogus-zoek-rate-option {
  min-width: 2.4rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #aab;
  border-radius: 4px;
  background: #fff;
  color: #223;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.catalogus-zoek-rate-option:hover,
.catalogus-zoek-rate-option:focus {
  background: #f0f4f8;
  outline: none;
}

.catalogus-zoek-rate-option.is-active {
  background: #003366;
  border-color: #003366;
  color: #fff;
}

.catalogus-zoek-rate.is-open .catalogus-zoek-rate-panel,
.catalogus-zoek-rate:focus-within .catalogus-zoek-rate-panel {
  display: block;
}

.catalogus-zoek-id {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.1rem 0.25rem;
  border: 1px dashed transparent;
  border-radius: 3px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: copy;
  color: inherit;
  position: relative;
}

.catalogus-zoek-id:hover,
.catalogus-zoek-id:focus {
  border-color: #99a;
  background: #f6f6f6;
}

.catalogus-zoek-id.is-copied::after {
  content: attr(data-copy-label);
  margin-left: 0.45rem;
  font-size: 0.8rem;
  color: #2a6;
  font-family: inherit;
}

.catalogus-zoek-id code {
  font-size: 0.9em;
}

.catalogus-zoek-incipit {
  margin-top: 0.2rem;
  color: #444;
  font-size: 0.95rem;
}

.catalogus-zoek-status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.4rem;
  vertical-align: baseline;
}

.catalogus-zoek-status {
  font-size: 0.85rem;
  color: #555;
}

.catalogus-zoek-tip {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.catalogus-zoek-tip-trigger {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 1px solid #aab;
  border-radius: 50%;
  background: #fff;
  color: #445;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.catalogus-zoek-tip-trigger:hover,
.catalogus-zoek-tip-trigger:focus {
  background: #f0f4f8;
  border-color: #789;
  outline: none;
}

.catalogus-zoek-tip-panel {
  display: none;
  position: absolute;
  left: 0;
  z-index: 40;
  width: max(16rem, 100%);
  max-width: min(22rem, 92vw);
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  color: #223344;
  background: #fffef8;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.catalogus-zoek-tip-panel p {
  margin: 0 0 0.45rem;
}

.catalogus-zoek-tip-panel p:last-child {
  margin-bottom: 0;
}

.catalogus-zoek-tip-panel a {
  color: #003366;
}

.catalogus-zoek-tip--status .catalogus-zoek-tip-panel {
  top: calc(100% + 0.35rem);
}

.catalogus-zoek-tip--id .catalogus-zoek-tip-panel {
  bottom: calc(100% + 0.35rem);
  right: 0;
  left: auto;
}

.catalogus-zoek-tip--help .catalogus-zoek-tip-panel {
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  width: min(22rem, 92vw);
}

.site-zoek-toggle-wrap .catalogus-zoek-tip--help .catalogus-zoek-tip-panel {
  top: calc(100% + 0.4rem);
  right: 0;
  left: auto;
  z-index: 50;
}

.catalogus-zoek-tip.is-open .catalogus-zoek-tip-panel,
.catalogus-zoek-tip:focus-within .catalogus-zoek-tip-panel {
  display: block;
}

@media (hover: hover) {
  .catalogus-zoek-tip--status:hover .catalogus-zoek-tip-panel {
    display: block;
  }
}

.catalogus-zoek-leeg {
  margin: 0.75rem 0;
  color: #555;
}
