.ys-samples { min-height:68vh; padding:32px 0 96px; background:radial-gradient(ellipse at 0% 30%,#cbdac866,transparent 48%),radial-gradient(ellipse at 100% 85%,#efd6c577,transparent 48%),#faf7f0; }
.ys-samples-inner { max-width:960px; }
.ys-song-collection .ys-song-collection-content { max-width:800px; margin-inline:auto; font:400 16px/1.8 'Yoanna Cairo',Tahoma,Arial,sans-serif; text-align:start; }
.ys-song-collection .ys-song-collection-content > * + * { margin-top:16px; }
/* Owner-supplied product images appear here when a featured image is assigned. */
.ys-song-thumbnail { width:96px; height:96px; margin:12px auto; display:grid; place-items:center; overflow:hidden; border:1px dashed #B9CBB3; border-radius:16px; background:#faf7f0; }
.ys-song-thumbnail-image { display:block; width:100%; height:100%; object-fit:cover; }
.ys-song-thumbnail-placeholder { padding:8px; color:#526453; font:400 13px/1.7 'Yoanna Cairo',Tahoma,Arial,sans-serif; }
.ys-song-resources { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; width:100%; min-width:0; }
.ys-page .ys-resource-button { min-width:0; min-height:44px; padding:8px; border:1px dashed #B9CBB3; border-radius:14px; background:#faf7f0; color:#526453; font:600 13px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif; white-space:normal; overflow-wrap:anywhere; }
.ys-resource-button:disabled { cursor:not-allowed; opacity:1; }
.ys-page a.ys-resource-button { display:flex; align-items:center; justify-content:center; text-align:center; text-decoration:none; }
.ys-page a.ys-resource-button:hover { border-style:solid; background:#dfe8dc; }
.ys-back { display:inline-flex; align-items:center; min-height:44px; }
.ys-grade-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:16px 0 48px; }
.ys-grade-nav a { padding:10px 22px; border:1px solid #c3cfbd; border-radius:24px; background:#ffffff70; }
.ys-grade-nav a[aria-current="page"] { background:#dfe8dc; border-color:#6b9176; }
.ys-grade-nav a:hover { background:#f0dfce; }
.ys-sample-heading { text-align:center; margin-bottom:36px; }
.ys-all-songs .ys-pastel-leaves { display:block; width:144px; height:72px; margin:0 auto 16px; }
.ys-page .ys-all-songs .ys-sample-heading > .ys-eyebrow { font-size:calc(11px + 3pt); }
@media(max-width:640px) { .ys-all-songs .ys-pastel-leaves { width:120px; height:60px; } }
@media(max-width:640px) { .ys-page .ys-all-songs .ys-sample-heading > .ys-eyebrow { font-size:calc(10px + 3pt); } }
.ys-page .ys-sample-heading h1 { font:400 42px/1.2 Georgia,serif; margin-top:16px; }
.ys-audio-card { width:100%; max-width:400px; margin:auto; padding:20px; text-align:center; border:1px solid #B9CBB3; border-radius:28px 40px; background:#E7EDE3; box-shadow:inset 0 0 0 1px #B9CBB3,0 16px 48px #2c44340a; }
.ys-audio-note { display:inline-flex; width:44px; height:44px; justify-content:center; align-items:center; border-radius:50%; background:#f0dfce; color:#526453; font-size:24px; }
.ys-page .ys-audio-card h2 { font-size:26px; margin:10px 0 14px; }
.ys-audio-card audio { display:block; width:100%; min-width:0; border-radius:28px; }
.ys-audio-card audio:focus-visible { outline:3px solid #304f39; outline-offset:6px; }
@media(max-width:640px) { .ys-samples { padding-bottom:60px; } .ys-grade-nav { gap:8px; margin-bottom:32px; } .ys-grade-nav a { padding:10px 14px; font-size:14px; } }
.ys-collection .ys-sample-heading { margin:28px 0 44px; }
.ys-collection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; max-width:760px; margin-inline:auto; }
.ys-collection-card { display:flex; flex-direction:column; align-items:center; padding:22px 20px; border:1px solid #dbe2d5; border-radius:22px 28px; background:linear-gradient(135deg,#eef2e8,#fffdf8); box-shadow:0 6px 20px #2c443405; transition:transform .2s ease,box-shadow .2s ease; }
.ys-collection-card:nth-child(even) { background:linear-gradient(135deg,#f5e8da,#fffdf8); border-color:#e0cebc; }
.ys-collection-note { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; color:#526453; background:#dfe8dc; font-size:22px; }
.ys-collection-card:nth-child(even) .ys-collection-note { background:#f0dfce; }
.ys-page .ys-collection-card h2 { font-size:26px; font-weight:500; margin:10px 0 8px; }
.ys-page .ys-collection-cta { font-size:13px; font-weight:500; display:flex; gap:10px; align-items:center; }
.ys-collection-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px #2c44340a; }
@media(max-width:640px) { .ys-collection-grid { grid-template-columns:1fr; gap:12px; } .ys-collection-card { padding:18px 16px; } .ys-page .ys-sample-heading h1 { font-size:38px; } }
@media(prefers-reduced-motion:reduce) { .ys-collection-card { transition:none; } .ys-collection-card:hover { transform:none; } }
.ys-songs-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.ys-songs-grid .ys-audio-card { width:100%; min-width:0; margin:0; }
.ys-songs-grid .ys-audio-card:nth-child(even) { background:#E7EDE3; border-color:#B9CBB3; }
.ys-songs-grid .ys-audio-note { margin-top:18px; }
.ys-songs-grid .ys-audio-card:nth-child(odd) .ys-audio-note { background:#dfe8dc; }

/* Compact spacing for the age collection only. */
.ys-collection:not(.ys-all-songs) { min-height:0; padding:18px 0 40px; }
.ys-collection:not(.ys-all-songs) .ys-sample-heading { margin:8px 0 24px; }
.ys-collection:not(.ys-all-songs) .ys-leaf { margin-bottom:12px; width:15px; height:28px; }
.ys-collection:not(.ys-all-songs) .ys-sample-heading h1 { margin-top:10px; }

/* Compact, single-column cards for All Songs and Age Collection. */
.ys-all-songs .ys-songs-grid { grid-template-columns:minmax(0,1fr); max-width:400px; margin-inline:auto; gap:12px; }
.ys-collection .ys-collection-grid { grid-template-columns:minmax(0,1fr); max-width:420px; margin-inline:auto; gap:16px; }
.ys-all-songs .ys-songs-grid .ys-audio-card { background:#E7EDE3; border-color:#B9CBB3; }
.ys-all-songs .ys-songs-grid .ys-audio-note { margin-top:10px; background:#dfe8dc; }
.ys-collection .ys-collection-card { padding:16px; background:linear-gradient(135deg,#f5e8da,#fffdf8); border-color:#e0cebc; }
.ys-collection .ys-collection-card .ys-collection-note { width:32px; height:32px; font-size:20px; background:#f0dfce; }
.ys-page .ys-collection .ys-collection-card h2 { font-size:24px; margin:8px 0 6px; }

/* Purchase controls stay within the existing audio cards. */
.ys-audio-card .ys-song-purchase { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px 16px; margin-top:14px; font-family:'Yoanna Cairo',Tahoma,Arial,sans-serif; }
.ys-song-purchase .ys-song-price { margin:0; color:#2c4434; font:600 18px/1.5 Arial,sans-serif; }
.ys-song-purchase .ys-buy-button { display:inline-flex; justify-content:center; align-items:center; min-height:44px; max-width:100%; padding:10px 22px; border:1px solid #7e9875; border-radius:18px 24px 17px 23px; background:linear-gradient(120deg,#d4e1ce,#e4ecdf); color:#1c3525; font:600 15px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif; text-decoration:none; }
.ys-song-purchase a.ys-buy-button:hover { background:#F2F4BE; color:#111111; }
.ys-song-purchase .ys-buy-button:disabled { cursor:not-allowed; border-style:dashed; background:#e9eee4; color:#435744; }
.ys-song-purchase .ys-purchase-note { flex-basis:100%; color:#526453; font-size:12px; line-height:1.7; }
.ys-song-purchase .ys-buy-button:focus-visible { outline:3px solid #304f39; outline-offset:5px; }

/* Shared audio-card sizes; age-collection navigation cards are unchanged. */
@media (min-width:641px) and (max-width:1024px) {
 .ys-audio-card { max-width:380px; padding:18px; }
 .ys-all-songs .ys-songs-grid { max-width:380px; }
 .ys-audio-card .ys-audio-note { width:40px; height:40px; }
 .ys-page .ys-audio-card h2 { font-size:24px; margin:8px 0 12px; }
 .ys-audio-card .ys-song-purchase { margin-top:12px; }
}
@media (max-width:640px) {
 /* 70% of the measured 261.1875px / 288.1875px mobile baselines.
    Minimum heights allow enlarged text to grow without clipping content. */
 .ys-audio-card { max-width:340px; min-height:182.83px; padding:8px 14px; display:grid; grid-template-columns:max-content 28px minmax(0,1fr); column-gap:8px; row-gap:4px; align-items:center; align-content:center; direction:ltr; }
 .ys-all-songs .ys-audio-card { min-height:201.73px; }
 .ys-all-songs .ys-songs-grid { max-width:340px; }
 .ys-audio-card > .ys-eyebrow { grid-column:1; grid-row:1; white-space:nowrap; }
 .ys-audio-card > .ys-audio-note { grid-column:2; grid-row:1; width:28px; height:28px; margin:0; line-height:1; }
 .ys-all-songs .ys-songs-grid .ys-audio-card > .ys-audio-note { margin:0; }
 .ys-page .ys-audio-card > h2 { grid-column:3; grid-row:1; min-width:0; font-size:24px; margin:0; white-space:nowrap; direction:rtl; }
 .ys-audio-card > audio { grid-column:1 / -1; grid-row:2; }
 .ys-audio-card .ys-song-purchase { grid-column:1 / -1; grid-row:3; display:grid; grid-template-columns:max-content max-content; justify-content:center; column-gap:12px; row-gap:4px; margin-top:0; }
 .ys-audio-card .ys-purchase-note { grid-column:1 / -1; grid-row:2; }
 body.page-template-page-samples .ys-audio-card::before { content:attr(data-stage-label); grid-column:1; grid-row:1; white-space:nowrap; color:var(--ys-muted); font-size:11px; letter-spacing:.22em; }
}

/* Desktop only: 60% of the measured 287.578125px / 316.265625px baselines.
   Minimum heights leave room for larger text without clipping content. */
@media (min-width:1025px) {
 .ys-audio-card { min-height:172.55px; padding:4px 20px; display:grid; grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr); column-gap:10px; row-gap:4px; align-items:center; align-content:center; direction:ltr; }
 .ys-all-songs .ys-audio-card { min-height:189.76px; }
 .ys-audio-card > .ys-eyebrow { grid-column:1; grid-row:1; white-space:nowrap; color:var(--ys-ink); font-size:18px; line-height:1.4; font-weight:600; letter-spacing:0; }
 .ys-audio-card > .ys-audio-note { grid-column:2; grid-row:1; width:28px; height:28px; margin:0; line-height:1; }
 .ys-all-songs .ys-songs-grid .ys-audio-card > .ys-audio-note { margin:0; }
 .ys-page .ys-audio-card > h2 { grid-column:3; grid-row:1; min-width:0; margin:0; white-space:nowrap; direction:rtl; }
 .ys-audio-card > audio { grid-column:1 / -1; grid-row:2; }
 .ys-audio-card .ys-song-purchase { grid-column:1 / -1; grid-row:3; display:grid; grid-template-columns:max-content max-content; justify-content:center; column-gap:12px; row-gap:4px; margin-top:0; }
 .ys-audio-card .ys-buy-button { padding-block:9px; }
 .ys-audio-card .ys-purchase-note { grid-column:1 / -1; grid-row:2; }
 body.page-template-page-samples .ys-audio-card::before { content:attr(data-stage-label); grid-column:1; grid-row:1; white-space:nowrap; color:var(--ys-ink); font-size:18px; line-height:1.4; font-weight:600; letter-spacing:0; }
}

/* Add rows for the thumbnail and resources without overlapping the player or purchase controls. */
@media (max-width:640px), (min-width:1025px) {
 .ys-audio-card--resources > .ys-song-thumbnail { grid-column:1 / -1; grid-row:2; }
 .ys-audio-card--resources > audio { grid-column:1 / -1; grid-row:3; }
 .ys-audio-card--resources > .ys-song-purchase { grid-column:1 / -1; grid-row:4; }
 .ys-audio-card--resources > .ys-song-resources { grid-column:1 / -1; grid-row:5; margin-top:8px; }
}

/* Arabic catalog headings and grade labels retain the existing card geometry. */
.ys-page .ys-sample-heading h1,
.ys-page .ys-audio-card h2,
.ys-page .ys-collection-card h2 { font-family:'Yoanna Cairo',Tahoma,Arial,sans-serif; line-height:1.6; letter-spacing:0; }
.ys-page .ys-samples .ys-eyebrow { letter-spacing:0; text-transform:none; }
.ys-back { gap:6px; }
.ys-audio-card > .ys-eyebrow,
body.page-template-page-samples .ys-audio-card::before { font-family:'Yoanna Cairo',Tahoma,Arial,sans-serif; direction:rtl; white-space:normal; letter-spacing:0; overflow-wrap:anywhere; }
.ys-page .ys-audio-card > h2 { white-space:normal; overflow-wrap:anywhere; }

/* Horizontal song cards: 30% wider and half the measured pre-change height. */
.ys-audio-card.ys-audio-card--resources {
 --ys-card-height:180.99px;
 max-width:520px; min-height:var(--ys-card-height); padding:8px 12px;
 display:grid; grid-template-columns:80px minmax(0,1fr) 120px;
 grid-template-areas:"thumbnail heading resources" "thumbnail player resources" "thumbnail purchase resources";
 grid-template-rows:auto 40px auto; gap:4px 12px; align-items:center; align-content:center; direction:rtl;
}
.ys-all-songs .ys-songs-grid { max-width:520px; }
body.page-template-page-samples .ys-audio-card--resources::before { content:none; }
.ys-audio-card--resources > .ys-song-heading { grid-area:heading; min-width:0; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:0 6px; direction:rtl; }
.ys-page .ys-audio-card--resources .ys-song-heading h2 { margin:0; font-size:20px; line-height:1.4; min-width:0; white-space:normal; overflow-wrap:anywhere; }
.ys-page .ys-audio-card--resources .ys-song-heading .ys-eyebrow { margin:0; font-size:11px; line-height:1.4; font-weight:600; white-space:normal; }
.ys-page .ys-audio-card--resources .ys-song-heading .ys-audio-note { width:20px; height:20px; margin:0; font-size:14px; flex-shrink:0; }
.ys-audio-card--resources > .ys-song-thumbnail { grid-area:thumbnail; width:80px; height:80px; margin:0; justify-self:center; }
.ys-audio-card--resources > audio { grid-area:player; width:100%; height:40px; min-width:0; }
.ys-audio-card--resources > .ys-song-purchase { grid-area:purchase; display:flex; flex-wrap:wrap; gap:2px 8px; margin:0; min-width:0; align-items:center; justify-content:center; }
.ys-page .ys-audio-card--resources .ys-song-price { font-size:16px; line-height:1.3; }
.ys-page .ys-audio-card--resources .ys-buy-button { min-height:44px; padding:4px 10px; font-size:13px; line-height:1.4; }
.ys-audio-card--resources .ys-purchase-note { font-size:10px; line-height:1.25; }
.ys-audio-card--resources > .ys-song-resources { grid-area:resources; grid-template-columns:minmax(0,1fr); gap:6px; margin:0; }
.ys-page .ys-audio-card--resources .ys-resource-button { min-height:44px; padding:4px; font-size:12px; }
@media (min-width:641px) and (max-width:1024px) {
 .ys-audio-card.ys-audio-card--resources { --ys-card-height:222.39px; max-width:494px; grid-template-columns:72px minmax(0,1fr) 116px; }
 .ys-all-songs .ys-audio-card.ys-audio-card--resources { --ys-card-height:236.73px; }
 .ys-all-songs .ys-songs-grid { max-width:494px; }
 .ys-audio-card--resources > .ys-song-thumbnail { width:72px; height:72px; }
}
@media (max-width:640px) {
 .ys-audio-card.ys-audio-card--resources { --ys-card-height:184.39px; max-width:442px; padding:6px 8px; grid-template-columns:96px minmax(0,1fr); grid-template-areas:"thumbnail heading" "thumbnail player" "purchase resources"; grid-template-rows:auto 32px auto; gap:2px 8px; }
 .ys-all-songs .ys-songs-grid { max-width:442px; }
 .ys-audio-card--resources > .ys-song-thumbnail { width:64px; height:64px; }
 .ys-audio-card--resources > audio { height:32px; }
 .ys-page .ys-audio-card--resources .ys-song-heading h2 { font-size:17px; line-height:1.4; }
 .ys-page .ys-audio-card--resources .ys-song-heading .ys-eyebrow { font-size:10px; line-height:1.3; }
 .ys-page .ys-audio-card--resources .ys-song-heading .ys-audio-note { width:14px; height:14px; font-size:12px; }
 .ys-audio-card--resources > .ys-song-purchase { gap:2px 4px; }
 .ys-page .ys-audio-card--resources .ys-song-price { font-size:14px; }
 .ys-page .ys-audio-card--resources .ys-buy-button { width:100%; padding:4px; font-size:12px; }
 .ys-audio-card--resources > .ys-song-resources { gap:4px; }
 .ys-page .ys-audio-card--resources .ys-resource-button { font-size:11px; }
}

/* Approved autumn palette and dimensions: trial card only. */
.ys-all-songs .ys-songs-grid:has(> .ys-audio-card--resources) { max-width:600px; }
.ys-all-songs .ys-songs-grid:has(> .ys-audio-card--resources) > .ys-audio-card { justify-self:center; }
.ys-page .ys-all-songs .ys-audio-card--resources {
 --ys-card-height:190px; max-width:600px; padding:14px 16px;
 grid-template-columns:96px minmax(0,1fr) 120px; grid-template-rows:auto 44px auto;
 gap:6px 12px; background:#EDF1E8; border-color:#BCCCB4; border-radius:24px;
 box-shadow:inset 0 0 0 1px #BCCCB4,0 16px 48px #2c44340a;
}
.ys-page .ys-audio-card--resources .ys-song-heading h2 { font-size:22px; font-weight:600; color:#304B38; }
.ys-page .ys-audio-card--resources > .ys-song-thumbnail { width:96px; height:96px; border-color:#BCCCB4; }
.ys-page .ys-audio-card--resources > audio {
 height:44px; background:#FFFDF7; border:1px solid #dfe5d9; border-radius:22px; color-scheme:light;
}
.ys-page .ys-audio-card--resources > audio::-webkit-media-controls-panel { background-color:#FFFDF7; }
.ys-page .ys-audio-card--resources .ys-song-price { font-size:17px; font-weight:600; color:#304B38; }
.ys-page .ys-audio-card--resources :is(.ys-buy-button, .ys-resource-button) {
 min-height:44px; padding:6px 10px; border-radius:12px; border-style:solid;
 color:#FFFFFF; font-size:13px; font-weight:700;
}
.ys-page .ys-audio-card--resources .ys-buy-button { background:#A34B1F; border-color:#A34B1F; }
.ys-page .ys-audio-card--resources .ys-resource-button {
 width:108px; max-width:100%; min-height:36px; padding:4px 6px; justify-self:center;
 font-size:11.5px; line-height:1.5; border-radius:10px; background:#45634B; border-color:#45634B;
}
.ys-page .ys-audio-card--resources .ys-buy-button:not(:disabled):hover { background:#F2F4BE; border-color:#F2F4BE; color:#111111; }
.ys-page .ys-audio-card--resources a.ys-resource-button:hover { background:#F2F4BE; border-color:#F2F4BE; color:#111111; }
@media (max-width:640px) {
 .ys-page .ys-all-songs .ys-audio-card--resources {
  padding:12px; grid-template-columns:96px minmax(0,1fr);
  grid-template-areas:"thumbnail heading" "thumbnail player" "purchase resources";
  gap:6px 10px;
 }
 .ys-page .ys-audio-card--resources > .ys-song-thumbnail { width:72px; height:72px; }
 .ys-page .ys-audio-card--resources .ys-song-heading h2 { font-size:20px; }
 .ys-page .ys-audio-card--resources .ys-song-price { font-size:16px; }
}

/* All Songs: image, lyrics, then score in a physical left-hand column. */
.ys-page .ys-all-songs .ys-audio-card.ys-audio-card--resources {
 --ys-song-title-size:calc(20px - 2pt);
 grid-template-columns:minmax(0,1fr) 120px;
 grid-template-areas:"heading assets" "player assets" "purchase assets";
 grid-template-rows:auto 44px auto;
}
.ys-page .ys-all-songs .ys-audio-card.ys-audio-card--resources { --ys-song-title-size:calc(22px - 2pt); }
.ys-all-songs .ys-song-assets { grid-area:assets; min-width:0; display:flex; flex-direction:column; align-items:center; gap:8px; }
.ys-all-songs .ys-song-assets .ys-song-thumbnail { flex-shrink:0; width:80px; height:80px; margin:0; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-assets .ys-song-thumbnail { width:96px; height:96px; }
.ys-all-songs .ys-song-assets .ys-song-resources { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; width:100%; margin:0; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-heading h2 { font-size:var(--ys-song-title-size); }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-heading .ys-eyebrow { font-size:calc(var(--ys-song-title-size) + 2pt); }
@media(min-width:641px) and (max-width:1024px) {
 .ys-all-songs .ys-song-assets .ys-song-thumbnail { width:72px; height:72px; }
}
@media(max-width:640px) {
 .ys-page .ys-all-songs .ys-audio-card.ys-audio-card--resources { --ys-song-title-size:calc(17px - 2pt); grid-template-columns:minmax(0,1fr) 96px; }
 .ys-page .ys-all-songs .ys-audio-card.ys-audio-card--resources { --ys-song-title-size:calc(20px - 2pt); }
 .ys-all-songs .ys-song-assets .ys-song-thumbnail { width:64px; height:64px; }
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-song-assets .ys-song-thumbnail { width:72px; height:72px; }
}
/* Shared product catalog: compact controls and readable, bounded cards. */
.ys-page .ys-catalog { min-height:0; padding-block:20px 64px; }
.ys-page .ys-catalog .ys-sample-heading { margin:0 0 12px; }
.ys-page .ys-catalog .ys-sample-heading h1 { margin:4px 0 0; font-size:30px; line-height:1.45; }
.ys-page .ys-catalog .ys-sample-heading > .ys-eyebrow { margin:3px 0 0; font-size:12px; line-height:1.6; }
.ys-page .ys-catalog .ys-catalog-heading-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; }
.ys-page .ys-catalog .ys-pastel-leaves { width:92px; height:46px; margin:0; }
.ys-page .ys-catalog .ys-catalog-controls { margin:0 0 20px; min-width:0; font-family:'Yoanna Cairo',Tahoma,Arial,sans-serif; direction:rtl; }
.ys-page .ys-catalog .ys-catalog-sort { display:flex; align-items:center; gap:6px; padding:0; margin:0; border:0; background:transparent; }
.ys-page .ys-catalog .ys-catalog-sort label { font-size:12px; font-weight:700; }
.ys-page .ys-catalog .ys-catalog-sort select { width:142px; min-width:0; }
.ys-page .ys-catalog .ys-catalog-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 12px; padding:12px; border:1px solid #D9E3D4; border-radius:14px; background:#F1F7ED; color:#41432D; }
.ys-page .ys-catalog .ys-catalog-filter { display:flex; flex-direction:column; gap:4px; min-width:0; }
.ys-page .ys-catalog .ys-catalog-filter label { font-size:13px; font-weight:700; line-height:1.6; }
.ys-page .ys-catalog .ys-catalog-filter select { width:100%; min-width:0; }
.ys-page .ys-catalog .ys-catalog-controls select { max-width:100%; min-height:40px; padding:5px 8px; border:1px solid #B9CBB3; border-radius:9px; background:#fff; color:#41432D; font:600 13px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif; }
.ys-page .ys-catalog .ys-catalog-filter-footer { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; min-width:0; font-size:13px; }
.ys-page .ys-catalog .ys-catalog-count { margin:0; }
.ys-page .ys-catalog .ys-catalog-reset { display:inline-flex; align-items:center; min-height:40px; text-decoration:underline; text-underline-offset:3px; }
.ys-page .ys-catalog .ys-catalog-admin-note { margin-inline-start:auto; font-size:12px; color:#596849; }
.ys-page .ys-catalog .ys-filter-apply { min-height:40px; padding:5px 12px; border:1px solid #7E9875; border-radius:9px; background:#D4E1CE; color:#1C3525; font:700 13px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif; cursor:pointer; }
.ys-page .ys-catalog .ys-catalog-auto .ys-filter-apply { display:none; }
.ys-page .ys-catalog .ys-catalog-controls :is(select,button,a):focus-visible { outline:3px solid #304F39; outline-offset:3px; }
.ys-page .ys-catalog .ys-catalog-empty { grid-column:1/-1; }
.ys-page .ys-catalog .ys-catalog-empty a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; }
.ys-page .ys-all-songs .ys-samples-inner { width:min(1440px,80%); max-width:none; }
.ys-page .ys-all-songs .ys-songs-grid {
 display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));
 max-width:none; gap:20px; align-items:stretch;
}
@media(max-width:1200px) {
 .ys-page .ys-all-songs .ys-samples-inner { width:calc(100% - 48px); }
}
@media(max-width:640px) {
 .ys-page .ys-all-songs .ys-samples-inner { width:calc(100% - 32px); }
 .ys-page .ys-all-songs .ys-songs-grid { gap:20px; }
 .ys-page .ys-catalog { padding-top:16px; }
 .ys-page .ys-catalog .ys-sample-heading h1 { font-size:26px; }
 .ys-page .ys-catalog .ys-catalog-heading-tools { gap:8px 10px; }
 .ys-page .ys-catalog .ys-pastel-leaves { width:74px; height:38px; }
 .ys-page .ys-catalog .ys-catalog-sort select { width:130px; }
 .ys-page .ys-catalog .ys-catalog-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; }
 .ys-page .ys-catalog .ys-catalog-controls select, .ys-page .ys-catalog .ys-catalog-reset, .ys-page .ys-catalog .ys-filter-apply { min-height:44px; }
 .ys-page .ys-catalog .ys-catalog-admin-note { flex-basis:100%; margin:0; }
 .ys-page .ys-catalog .ys-catalog-controls { margin-bottom:16px; }
}
.ys-page .ys-all-songs .ys-audio-card.ys-audio-card--resources {
 width:100%; max-width:300px; min-height:0; height:100%; margin:0;
 padding:10px; border:1px solid #CFE0CB; border-radius:18px; background:#FFFFFF;
 grid-template-columns:minmax(0,1fr);
 grid-template-areas:"thumbnail" "heading" "player" "resources" "document-note" "purchase";
 grid-template-rows:auto 1fr auto auto auto auto;
 column-gap:12px; row-gap:6px; align-content:start;
 box-shadow:0 8px 24px #46543B0A;
 font-family:'Yoanna Cairo',sans-serif;
}
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-heading { flex-direction:column; justify-content:flex-start; gap:4px; align-items:center; align-self:stretch; text-align:center; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-heading h2 { order:0; margin:0; font-size:20px; font-weight:600; color:#46543B; line-height:1.45; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-heading .ys-eyebrow {
 order:1; padding:4px 8px; border-radius:999px; background:#F1F3E9; color:#596849;
 font-size:13px; font-weight:500; line-height:1.6;
}
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-heading .ys-audio-note { display:none; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-assets { display:contents; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-assets .ys-song-thumbnail { grid-area:thumbnail; width:100%; height:auto; aspect-ratio:1; justify-self:stretch; border:1px solid #E5E7DC; border-radius:14px; background:#FAF8F3; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-thumbnail picture { display:block; width:100%; height:100%; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-thumbnail-image { object-fit:contain; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-assets .ys-song-resources { grid-area:resources; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-resource-button {
 width:100%; max-width:100%; min-height:36px; padding:4px 6px;
 background:#F1F3E9; border:1px solid #E5E7DC; border-radius:12px;
 color:#596849; font-size:12px; font-weight:600; line-height:1.6; gap:6px; white-space:nowrap;
}
.ys-page .ys-all-songs .ys-audio-card--resources .ys-resource-button svg { width:14px; height:14px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.ys-page .ys-all-songs .ys-audio-card--resources a.ys-resource-button:hover { background:#F2F4BE; border-color:#F2F4BE; color:#111111; }
.ys-page .ys-all-songs .ys-audio-card--resources > audio { background:#C8D8C0; border-color:#E5E7DC; }
.ys-page .ys-all-songs .ys-audio-card--resources > audio::-webkit-media-controls-panel { background-color:#C8D8C0; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-purchase { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-price { color:#46543B; font-family:'Yoanna Cairo',sans-serif; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button {
 min-height:44px; width:auto; padding:8px 18px; border-radius:12px; border:1px solid var(--ys-purchase-bg,#F4A07D);
 background:var(--ys-purchase-bg,#F4A07D); color:var(--ys-purchase-ink,#40291F); font-size:15px; font-weight:600; line-height:1.6;
 display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button::before { content:''; display:block; width:18px; height:18px; flex-shrink:0; background-color:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 4h2l2 12h11l3-9H6M9 20h.01M17 20h.01'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 4h2l2 12h11l3-9H6M9 20h.01M17 20h.01'/%3E%3C/svg%3E") center/contain no-repeat; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button:not(:disabled):hover { background:var(--ys-purchase-hover,#F2F4BE); border-color:var(--ys-purchase-hover,#F2F4BE); color:var(--ys-purchase-ink,#40291F); }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-purchase-note { color:#697465; font-size:15px; font-weight:400; line-height:1.6; }
.ys-page .ys-all-songs .ys-audio-card--resources :is(button,a,audio):focus-visible { outline:3px solid #344B36; outline-offset:4px; }
.ys-page .ys-all-songs .ys-audio-card--resources [hidden] { display:none !important; }
@media(max-width:640px) {
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-resource-button { min-height:44px; }
}


/* Approved catalog design review only; other song pages keep their current styles. */
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-player { grid-area:player; display:grid; gap:6px; min-width:0; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-player-label { color:#46543B; font-size:13px; text-align:center; line-height:1.6; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-player audio { width:100%; min-width:0; height:44px; background:#C8D8C0; border:1px solid #E5E7DC; border-radius:24px; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-player audio::-webkit-media-controls-panel { background-color:#C8D8C0; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-document-preview-note { grid-area:document-note; font-size:12px; line-height:1.6; text-align:center; color:#596849; margin:0; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-resource-button { min-height:32px; padding-block:2px; border-radius:9px; white-space:normal; text-align:center; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button:disabled { background:#E7E9E3; border-color:#D4D9CF; color:#626D5D; cursor:not-allowed; opacity:1; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button:disabled::before { display:none; }
.ys-page .ys-all-songs .ys-catalog-empty { width:100%; text-align:center; padding:24px 12px; color:#596849; }

/* Product-backed classifications for the approved song card. */
.ys-page .ys-all-songs .ys-song-classifications { display:flex; flex-wrap:wrap; gap:4px 8px; width:100%; list-style:none; padding:8px; margin:4px 0 0; border-radius:10px; background:#F1F7ED; text-align:right; }
.ys-page .ys-all-songs .ys-song-classification { display:block; flex-basis:100%; min-width:0; padding:0; margin:0; font-size:13px; line-height:1.65; }
.ys-page .ys-all-songs .ys-song-classification:is([data-taxonomy='ys_song_topic'],[data-taxonomy='ys_song_language']) { flex-basis:auto; }
.ys-page .ys-all-songs .ys-classification-separator { color:#596849; }
.ys-page .ys-all-songs .ys-classification-label { display:inline; color:#596849; font-weight:700; }
.ys-page .ys-all-songs .ys-classification-value { display:inline; padding:0; border:0; border-radius:0; background:transparent; color:#46543B; font-weight:400; overflow-wrap:anywhere; }

/* Keep document links comfortable to tap after compacting the visual spacing. */
@media(max-width:640px) {
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-resource-button { min-height:44px; }
 .ys-page .ys-all-songs .ys-audio-card.ys-audio-card--resources { max-width:336px; }
}

/* All Songs only: one RTL toolbar above the heading, without a second filter box. */
.ys-page .ys-catalog--toolbar .ys-catalog-toolbar {
 display:grid; grid-template-columns:160px minmax(140px,1.1fr) minmax(160px,1.4fr) minmax(100px,.8fr) minmax(120px,1fr) minmax(130px,.9fr);
 gap:10px; align-items:end; padding:10px 12px; border:1px solid #DCE3D6; border-radius:14px; background:#FFFEFB;
}
/* Approved quiet signature: decorative words below the original branch. */
.ys-page .ys-catalog--toolbar .ys-glyph-identity {
 display:flex; flex-direction:column; align-items:center; gap:0;
 width:160px; max-width:100%; align-self:center; justify-self:center;
 direction:rtl; text-align:center; color:#596849;
 font:500 12px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif;
}
.ys-page .ys-catalog--toolbar .ys-glyph-identity span {
 white-space:nowrap; font-size:8px; line-height:1.4; font-weight:400; opacity:.75;
}
.ys-page .ys-catalog--toolbar .ys-glyph-identity .ys-pastel-leaves {
 width:64px; height:28px; margin:0; align-self:center; justify-self:center;
}
.ys-page .ys-catalog--toolbar .ys-catalog-sort,
.ys-page .ys-catalog--toolbar .ys-catalog-filter { display:flex; flex-direction:column; align-items:stretch; gap:4px; min-width:0; margin:0; padding:0; }
.ys-page .ys-catalog--toolbar .ys-catalog-toolbar label { font-size:12px; line-height:1.6; font-weight:700; color:#000000; white-space:nowrap; }
.ys-page .ys-catalog--toolbar .ys-catalog-toolbar select {
 appearance:none; width:100%; min-width:0; height:40px; min-height:40px; max-height:40px; margin:0;
 padding:5px 10px 5px 28px; border:1px solid #DCE3D6; border-radius:9px;
 background-color:#F2F6EE; color:#000000; font:600 13px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23687861' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-position:left 8px center; background-size:14px 14px; background-repeat:no-repeat;
}
.ys-page .ys-catalog--toolbar .ys-catalog-filter select:hover { background-color:#F0F8F5; }
.ys-page .ys-catalog--toolbar .ys-catalog-filter--selected select { background-color:#E3EDD9; font-weight:700; }
.ys-page .ys-catalog--toolbar .ys-catalog-sort label { color:#000000; }
.ys-page .ys-catalog--toolbar .ys-catalog-sort select {
 background-color:#F2F6EE; color:#000000; border-color:#DCE3D6;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23687861' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ys-page .ys-catalog--toolbar .ys-catalog-toolbar select:focus-visible { outline:3px solid #000000; outline-offset:3px; }
.ys-page .ys-catalog--toolbar .ys-catalog-sort select:focus-visible { outline-color:#000000; }
.ys-page .ys-catalog--toolbar .ys-sample-heading { margin:10px 0 4px; }
.ys-page .ys-catalog--toolbar .ys-catalog-controls { margin-bottom:16px; }
.ys-page .ys-catalog--toolbar .ys-catalog-filter-footer { display:flex; align-items:center; justify-content:flex-start; gap:6px 12px; margin:0; font-size:12px; }
.ys-page .ys-catalog--toolbar .ys-catalog-reset { min-height:32px; }
.ys-page .ys-catalog--toolbar .ys-catalog-admin-note { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:1000px) {
 .ys-page .ys-catalog--toolbar .ys-catalog-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ys-page .ys-catalog--toolbar .ys-catalog-filter--selected:has([name='ys_collection']) { grid-column:1/-1; }
}
@media(max-width:359px) {
 .ys-page .ys-catalog--toolbar .ys-catalog-toolbar { grid-template-columns:minmax(0,1fr); gap:8px; }
}


/* Quiet nature accents are painted only in All Songs outer gutters. */
.ys-page .ys-catalog--toolbar { position:relative; isolation:isolate; background:#FAF7F0; }
.ys-page .ys-catalog--toolbar::before {
 content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.08;
 background-image:url('../images/decorations/nature-branch.svg'),url('../images/decorations/nature-branch.svg'),url('../images/decorations/nature-butterfly.svg'),url('../images/decorations/nature-bird.svg'),url('../images/decorations/nature-rabbit.svg');
 background-size:80px 110px,64px 90px,20px 20px,28px 28px,30px 34px;
 background-position:left 18px top 36px,right 16px top 360px,left 70px top 170px,right 32px top 450px,left 28px top 740px;
 background-repeat:no-repeat; animation:none;
}
.ys-page .ys-catalog--toolbar .ys-catalog-sort select:hover { background-color:#F0F8F5; }
@media(max-width:1200px) { .ys-page .ys-catalog--toolbar::before { display:none; } }

/* Approved compact song cards: intrinsic height, full images and aligned document links. */
.ys-page .ys-all-songs {
 --ys-compact-width:255px;
}
.ys-page .ys-all-songs .ys-songs-grid {
 align-items:start; justify-content:space-between;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--ys-compact-width)),var(--ys-compact-width)));
}
.ys-page .ys-all-songs .ys-audio-card.ys-audio-card--resources {
 height:auto; min-height:0; grid-template-rows:repeat(6,auto); align-content:start;
 max-width:var(--ys-compact-width); padding:8px; row-gap:4px;
}
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-heading { align-self:start; gap:3px; }
.ys-page .ys-all-songs .ys-song-classifications { padding:6px; margin-top:2px; gap:3px 6px; }
.ys-page .ys-all-songs .ys-song-classification { line-height:1.6; text-wrap:pretty; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-player { gap:3px; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-purchase { gap:4px; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-assets .ys-song-thumbnail { width:100%; height:auto; aspect-ratio:1; }
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-assets .ys-song-resources {
 width:100%; justify-self:stretch; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px;
}
.ys-page .ys-all-songs .ys-audio-card--resources .ys-resource-button {
 width:100%; min-width:0; max-width:100%; justify-self:stretch;
 min-height:28px; padding:2px 10px; border-radius:8px; font-size:12px; line-height:1.6;
}
.ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button {
 min-height:36px; padding:4px 12px; border-radius:8px; font-weight:700;
}
.ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button:disabled { color:#41432D; border-color:#B4BDAE; }
@media(max-width:640px) {
 .ys-page .ys-all-songs { --ys-compact-width:286px; }
 /* Small visual fills retain a full, nonoverlapping 44px touch target. */
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-resource-button {
  position:relative; isolation:isolate; min-height:44px; background:transparent; border-color:transparent;
 }
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-resource-button::after {
  content:''; position:absolute; inset:7px 0; z-index:-1; pointer-events:none;
  border:1px solid #E5E7DC; border-radius:8px; background:#F1F3E9;
 }
 .ys-page .ys-all-songs .ys-audio-card--resources a.ys-resource-button:hover { background:transparent; border-color:transparent; }
 .ys-page .ys-all-songs .ys-audio-card--resources a.ys-resource-button:hover::after { background:#F2F4BE; border-color:#F2F4BE; }
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button,
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button:disabled,
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button:not(:disabled):hover {
  position:relative; isolation:isolate; min-height:44px; background:transparent; border-color:transparent;
 }
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button::after {
  content:''; position:absolute; inset:3px -1px; z-index:-1; pointer-events:none;
  border:1px solid var(--ys-purchase-bg,#F4A07D); border-radius:8px; background:var(--ys-purchase-bg,#F4A07D);
 }
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button:disabled::after { background:#E7E9E3; border-color:#B4BDAE; }
 .ys-page .ys-all-songs .ys-audio-card--resources .ys-buy-button:not(:disabled):hover::after { background:var(--ys-purchase-hover,#F2F4BE); border-color:var(--ys-purchase-hover,#F2F4BE); }
}
@media(max-width:359px) { .ys-page .ys-all-songs { --ys-compact-width:272px; } }
/* A single mobile card shares the toolbar width; desktop gaps absorb spare space. */
@media(max-width:640px) {
 .ys-page .ys-all-songs .ys-songs-grid { justify-content:center; }
 .ys-page .ys-catalog .ys-sidebar-tools,
 .ys-page .ys-catalog .ys-catalog-heading-tools { max-width:var(--ys-compact-width); margin-inline:auto; }
}
/* One shared form and one panel; desktop sidebar becomes the mobile drawer. */
.ys-page .ys-catalog--sidebar { background:#FAF7F0; }
.ys-page .ys-catalog--sidebar .ys-samples-inner { display:grid; grid-template-columns:240px minmax(0,1fr); gap:20px 24px; align-items:start; direction:rtl; }
.ys-page .ys-catalog--sidebar .ys-catalog-controls { display:contents; }
.ys-page .ys-catalog--sidebar .ys-sidebar-heading { grid-column:2; grid-row:1; min-width:0; }
.ys-page .ys-catalog--sidebar .ys-sample-heading { margin:0 0 12px; }
.ys-page .ys-catalog--sidebar .ys-sidebar-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.ys-page .ys-catalog--sidebar .ys-glyph-identity { display:flex; align-items:center; gap:6px; color:#596849; font-size:10px; }
.ys-page .ys-catalog--sidebar .ys-pastel-leaves { width:64px; height:32px; }
.ys-page .ys-catalog--sidebar .ys-songs-grid { grid-column:2; grid-row:2; min-width:0; width:100%; }
.ys-page .ys-catalog--sidebar .ys-filter-panel { grid-column:1; grid-row:1 / span 2; position:sticky; top:var(--ys-filter-top,180px); max-height:calc(100dvh - var(--ys-filter-top,180px) - 16px); overflow:auto; min-width:0; padding:16px; border:1px solid #DCE3D6; border-radius:14px; background:#FFFEFB; font-family:'Yoanna Cairo',Tahoma,Arial,sans-serif; color:#000; scroll-margin-top:var(--ys-filter-top,180px); }
.ys-page .ys-catalog--sidebar .ys-sidebar-title { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ys-page .ys-catalog--sidebar .ys-sidebar-title h2 { font:700 17px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif; margin:0 0 12px; }
.ys-page .ys-catalog--sidebar .ys-sidebar-group { padding:10px 0; border-top:1px solid #DCE3D6; scroll-margin-top:var(--ys-filter-top,180px); }
.ys-page .ys-catalog--sidebar .ys-sidebar-group summary { cursor:pointer; font-weight:700; font-size:14px; padding:6px 0; }
.ys-page .ys-catalog--sidebar fieldset { border:0; padding:4px 0; margin:0; min-width:0; }
.ys-page .ys-catalog--sidebar .ys-sidebar-choice { display:flex; align-items:center; gap:8px; min-height:40px; padding:4px 6px; border-radius:8px; font-size:13px; cursor:pointer; }
.ys-page .ys-catalog--sidebar .ys-sidebar-choice:hover { background:#F0F8F5; }
.ys-page .ys-catalog--sidebar .ys-sidebar-choice:has(input:checked) { background:#E3EDD9; }
.ys-page .ys-catalog--sidebar input[type=checkbox] { accent-color:#6B9176; flex:none; width:17px; height:17px; margin:0; }
.ys-page .ys-catalog--sidebar .ys-sidebar-selection-tools { display:flex; flex-wrap:wrap; gap:4px 8px; margin-bottom:4px; }
.ys-page .ys-catalog--sidebar .ys-sidebar-selection-tools button { min-height:40px; padding:4px 6px; border:0; border-radius:8px; background:#F2F6EE; color:#304F39; font:600 12px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif; cursor:pointer; }
.ys-page .ys-catalog--sidebar .ys-sidebar-selection-tools button:hover { background:#E3EDD9; }
.ys-page .ys-catalog--sidebar .ys-sidebar-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding-top:12px; border-top:1px solid #DCE3D6; }
.ys-page .ys-catalog--sidebar :is(.ys-sidebar-open,.ys-sidebar-close,.ys-sidebar-apply) { min-height:44px; padding:7px 14px; border:1px solid #B9CBB3; border-radius:9px; background:#F2F6EE; color:#000; font:700 13px/1.6 'Yoanna Cairo',Tahoma,Arial,sans-serif; cursor:pointer; }
.ys-page .ys-catalog--sidebar .ys-sidebar-close { font-size:24px; padding:0 12px; }
.ys-page .ys-catalog--sidebar [hidden] { display:none !important; }
.ys-page .ys-catalog--sidebar :is(button,a,input,summary,select):focus-visible { outline:3px solid #304F39; outline-offset:3px; }
.ys-page .ys-catalog--sidebar .ys-catalog-admin-note { display:block; margin-top:12px; }
@media(max-width:900px) {
 .ys-page .ys-catalog--sidebar .ys-samples-inner { grid-template-columns:minmax(0,1fr); gap:16px; }
 .ys-page .ys-catalog--sidebar .ys-sidebar-heading { grid-column:1; grid-row:1; }
 .ys-page .ys-catalog--sidebar .ys-filter-panel { grid-column:1; grid-row:2; position:static; max-height:none; }
 .ys-page .ys-catalog--sidebar .ys-songs-grid { grid-column:1; grid-row:3; }
 .ys-page .ys-catalog--sidebar .ys-sidebar-choice { min-height:44px; }
 .ys-page .ys-catalog--sidebar .ys-sidebar-selection-tools button { min-height:44px; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-filter-panel { position:fixed; inset:0 0 0 auto; z-index:10001; width:min(340px,92vw); max-height:100dvh; border-radius:14px 0 0 14px; transform:translateX(105%); visibility:hidden; transition:transform .22s ease; padding:20px; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced[data-drawer-open=true] .ys-filter-panel { transform:translateX(0); visibility:visible; }
 .ys-page .ys-catalog--sidebar .ys-sidebar-backdrop { position:fixed; inset:0; z-index:10000; background:rgb(0 0 0 / .3); }
 .ys-page .ys-catalog--sidebar .ys-sidebar-actions { position:sticky; bottom:-20px; background:#FFFEFB; padding-bottom:16px; }
}
/* Compact All Songs phone drawer, leaving more of the catalog visible. */
@media(max-width:700px) {
 .ys-page .ys-catalog--sidebar:not(.ys-catalog--book-sidebar).ys-sidebar-enhanced .ys-filter-panel {
  width:min(280px,75vw);
  padding:16px;
 }
 .ys-page .ys-catalog--sidebar:not(.ys-catalog--book-sidebar) .ys-sidebar-actions {
  bottom:-16px;
 }
}
@media(prefers-reduced-motion:reduce) { .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-filter-panel { transition:none; } }



/* ZY stage scope notes: retain the full meaning on one line in compact cards. */
.ys-page .ys-all-songs .ys-song-classification.ys-song-classification--compact-stage {
 font-size:10.5px; white-space:nowrap; text-wrap:nowrap;
}
.ys-page .ys-all-songs .ys-song-classification--compact-stage .ys-classification-value {
 overflow-wrap:normal; white-space:nowrap;
}

/* Book collections reuse the All Songs sidebar and mobile drawer. */
.ys-page .ys-catalog--book-sidebar { background:#fff; }
.ys-page .ys-catalog--book-sidebar .ys-song-collection-content { text-align:center; }
.ys-page .ys-catalog--book-sidebar .ys-book-formats { margin-top:24px; }
.ys-page .ys-catalog--book-sidebar .ys-catalog-count { margin:0; }
.ys-page .ys-catalog--book-sidebar .ys-rr2-learning { margin:18px auto 24px; max-width:920px; color:#304a38; text-align:right; font-family:'Yoanna Baloo',Tahoma,Arial,sans-serif; font-weight:444; }
.ys-page .ys-rr2-learning-content { max-width:100%; }
.ys-page .ys-rr2-learning-content p { margin:0 0 12px; line-height:1.75; }
.ys-page .ys-rr2-lead { font-size:19px; color:#294b37; }
.ys-page .ys-rr2-intro { font-size:15px; color:#4d624f; }
.ys-page .ys-rr2-disclosures { display:grid; gap:12px; margin-top:20px; }
.ys-page .ys-rr2-panel { min-width:0; border:1px solid #d6dfce; border-radius:16px; background:#fff; overflow:hidden; }
.ys-page .ys-rr2-panel summary { cursor:pointer; min-height:52px; padding:12px 18px; background:#f3f7f0; color:#294b37; font-size:17px; font-weight:700; }
.ys-page .ys-rr2-panel summary:hover { background:#eaf2e5; }
.ys-page .ys-rr2-panel summary:focus-visible,.ys-page .ys-rr2-sample-link:focus-visible { outline:3px solid #345d40; outline-offset:3px; }
.ys-page .ys-rr2-panel-body { padding:18px; }
.ys-page .ys-rr2-song-list,.ys-page .ys-rr2-audio-list { margin:0; padding:0 24px 0 0; }
.ys-page .ys-rr2-song-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; }
.ys-page .ys-rr2-song-list li { padding:10px 12px; border-radius:10px; background:#f9fbf7; line-height:1.65; }
.ys-page .ys-rr2-song-list li strong,.ys-page .ys-rr2-song-list li span { display:block; }
.ys-page .ys-rr2-song-list li strong { color:#294b37; }
.ys-page .ys-rr2-song-list li span { font-size:13px; }
.ys-page .ys-rr2-sample-link { display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; border-radius:10px; background:#6b9176; color:#fff; text-decoration:none; }
.ys-page .ys-rr2-sample-pages { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ys-page .ys-rr2-sample-pages figure { margin:0; }
.ys-page .ys-rr2-sample-pages img { display:block; width:100%; height:auto; border:1px solid #d6dfce; border-radius:8px; }
.ys-page .ys-rr2-sample-pages figcaption { margin-top:6px; font-size:13px; text-align:center; }
.ys-page .ys-rr2-audio-list { display:grid; gap:10px; }
.ys-page .ys-rr2-audio-list li { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,260px); gap:12px; align-items:center; padding:8px 10px; border-radius:10px; background:#f9fbf7; }
.ys-page .ys-rr2-audio-list audio { width:100%; min-width:0; }
@media(max-width:700px) { .ys-page .ys-rr2-song-list { grid-template-columns:1fr; } .ys-page .ys-rr2-sample-pages { grid-template-columns:1fr; max-width:420px; margin-inline:auto; } .ys-page .ys-rr2-audio-list li { grid-template-columns:1fr; } }
/* Keep catalog drawer controls below WordPress's signed-in toolbar. */
@media(max-width:900px) {
 body.admin-bar .ys-catalog--sidebar.ys-sidebar-enhanced .ys-filter-panel {
  top:46px; max-height:calc(100dvh - 46px);
 }
}
@media(min-width:783px) and (max-width:900px) {
 body.admin-bar .ys-catalog--sidebar.ys-sidebar-enhanced .ys-filter-panel {
  top:32px; max-height:calc(100dvh - 32px);
 }
}

/* Book pages use the full width when their filter panel is omitted. */
.ys-page .ys-catalog--book-wide .ys-samples-inner { display:block; }
.ys-page .ys-catalog--book-wide .ys-catalog-controls { display:contents; }
.ys-page .ys-catalog--book-wide .ys-sidebar-heading,
.ys-page .ys-catalog--book-wide .ys-songs-grid { width:100%; min-width:0; }
.ys-page .ys-catalog--book-wide .ys-sidebar-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }

/* Keep price at the right and purchase at the left, including unpriced drafts. */
.ys-page .ys-all-songs .ys-audio-card--resources .ys-song-purchase,
.ys-page .ys-audio-card:not(.ys-audio-card--resources) .ys-song-purchase {
 display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 8px; direction:rtl;
}
.ys-page .ys-audio-card .ys-song-purchase .ys-song-price { grid-column:1; grid-row:1; justify-self:start; }
.ys-page .ys-audio-card .ys-song-purchase .ys-song-price--empty { visibility:hidden; }
.ys-page .ys-audio-card .ys-song-purchase .ys-buy-button { grid-column:2; grid-row:1; justify-self:end; width:auto; }
.ys-page .ys-audio-card .ys-song-purchase .ys-purchase-note { grid-column:1 / -1; grid-row:2; }

/* Mobile catalog filter: comfortable touch targets and visible drawer controls. */
@media (max-width:900px) {
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-filter-panel {
  box-sizing:border-box;
  width:min(340px,calc(100vw - 28px));
  height:100dvh;
  padding:0 16px;
  padding-bottom:env(safe-area-inset-bottom,0px);
  overscroll-behavior:contain;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  scroll-padding-block:76px 88px;
 }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-title {
  position:sticky;
  top:0;
  z-index:2;
  min-height:64px;
  padding-top:env(safe-area-inset-top,0px);
  margin:0 -16px;
  padding-inline:16px;
  background:#FFFEFB;
  border-bottom:1px solid #DCE3D6;
 }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-title h2 { margin:0; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-close { flex:none; min-width:44px; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-group summary { min-height:44px; box-sizing:border-box; display:list-item; padding-block:10px; font-size:15px; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-choice { min-height:44px; font-size:15px; line-height:1.6; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-choice span { min-width:0; overflow-wrap:anywhere; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced input[type=checkbox] { width:20px; height:20px; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-actions {
  position:sticky;
  bottom:0;
  z-index:3;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  margin:0 -16px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  background:#FFFEFB;
  box-shadow:0 -4px 12px rgb(48 79 57 / .08);
 }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-apply { min-height:48px; background:#D4E1CE; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-actions .ys-catalog-reset { display:flex; align-items:center; justify-content:center; min-height:48px; margin:0; }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced .ys-sidebar-open { min-height:46px; }
}
/* Unified responsive catalog controls: one form and one source of results. */
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-samples-inner {
 display:grid; grid-template-columns:240px minmax(0,1fr); gap:20px 24px; direction:rtl;
}
.ys-page .ys-filter-responsive .ys-filter-status {
 margin:0; color:#304f39; font:600 14px/1.8 'Yoanna Cairo',Tahoma,Arial,sans-serif;
}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-filter-panel {
 box-sizing:border-box; width:100%; height:auto; min-width:0; padding:16px;
 grid-column:1; grid-row:1 / span 2; position:sticky; top:var(--ys-filter-top,180px);
 max-height:calc(100dvh - var(--ys-filter-top,180px) - 16px);
 overflow:auto; overscroll-behavior:contain; transform:none; visibility:visible; z-index:1;
 border:1px solid #d6e1cf; border-radius:16px; background:#fffefb; scroll-padding-block:68px 90px;
}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-heading {grid-column:2;grid-row:1;}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-songs-grid {grid-column:2;grid-row:2;scroll-margin-top:var(--ys-filter-top,180px);}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-title {
 position:sticky;top:-16px;z-index:2;display:flex;align-items:center;justify-content:space-between;
 min-height:56px;margin:-16px -16px 8px;padding:10px 16px;background:#fffefb;border-bottom:1px solid #dce3d6;
}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-title h2 {margin:0;font-size:18px;}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-choice {
 min-height:44px;font-size:15px;line-height:1.6;overflow-wrap:anywhere;
}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-choice span {min-width:0;}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive input[type=checkbox] {width:20px;height:20px;}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-group summary {min-height:44px;padding-block:10px;box-sizing:border-box;font-size:15px;}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-selection-tools button {min-height:44px;}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-actions {
 position:sticky;bottom:-16px;z-index:3;display:flex;flex-wrap:wrap;gap:8px;
 margin:8px -16px -16px;padding:12px 16px;background:#fffefb;border-top:1px solid #dce3d6;
 box-shadow:0 -4px 12px rgb(48 79 57 / .06);
}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-apply {
 flex:1;min-height:48px;background:#d4e1ce;font-size:14px;white-space:normal;
}
.ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-catalog-reset {
 display:inline-flex;justify-content:center;align-items:center;min-height:48px;margin:0;color:#304f39;font-size:13px;
}
.ys-page .ys-filter-responsive [aria-busy=true] .ys-filter-status {opacity:.8;}
.ys-page .ys-filter-responsive .ys-catalog-filters {direction:rtl;}
@media (max-width:767px) {
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-samples-inner {
  grid-template-columns:minmax(0,1fr);gap:14px;
 }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-heading {grid-column:1;grid-row:1;}
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-filter-panel {
  grid-column:1;grid-row:2;position:relative;inset:auto;width:50%;justify-self:start;height:auto;max-height:min(65dvh,560px);
  padding:16px;transform:none;border-radius:14px;overflow-x:hidden;overflow-y:auto;transition:none;
 }
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-songs-grid {grid-column:1;grid-row:3;}
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-sidebar-actions {
  display:grid;grid-template-columns:minmax(0,1fr);bottom:-16px;
 }
 .ys-page .ys-filter-responsive .ys-sidebar-title {flex-wrap:wrap;}
 .ys-page .ys-filter-responsive .ys-sidebar-title h2 {min-width:0;overflow-wrap:anywhere;}
 .ys-page .ys-filter-responsive .ys-sidebar-open {min-height:46px;min-width:88px;}
 .ys-page .ys-filter-responsive .ys-sidebar-close {min-width:44px;min-height:44px;}
}
@media (min-width:768px) and (max-width:1023px) {
 .ys-page .ys-catalog--sidebar.ys-sidebar-enhanced.ys-filter-responsive .ys-samples-inner {grid-template-columns:220px minmax(0,1fr);gap:16px;}
}

/* Scoped shared purchase palette; stage pages and disabled controls retain their styles. */
.ys-page :is(.ys-palette-catalog,.ys-book-reference) .ys-buy-button:not(:disabled):not([aria-disabled="true"]) {
 --ys-purchase-bg:#FFDAB9;--ys-purchase-hover:#F2F4BE;--ys-purchase-ink:#111111;
}
