/* Shared header only. Preserve the Hero, cards, footer and commerce styles. */
.ys-header {
 --header-bg: #FEFBF7;
 --header-ink: #000000;
 --header-border: #E6DED6;
 --header-item-bg: #2E6F40; 
 --header-button-ink: #FFFFFF;
 --header-button-border: #E6DED6;
 background: var(--header-bg);
 border-bottom: 1px solid var(--header-border);
 box-shadow: 0 3px 12px #40291f07;
 color: var(--header-ink);
 direction: rtl;
 font-family: 'Yoanna Cairo', Tahoma, Arial, sans-serif;
}
.ys-header::before, .ys-header::after { display: none; }
.ys-header [hidden] { display: none !important; }
.ys-header .ys-header-inner {
 display: flex;
 flex-wrap: nowrap;
 align-items: center;
 gap: 12px;
 width: 80%;
 min-height: 80px;
 padding-block: 0;
}
.ys-header .ys-header-brand { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; color: var(--header-ink); white-space: nowrap; }
.ys-header .ys-header-logo-picture { display: block; flex-shrink: 0; line-height: 0; }
.ys-header .ys-header-logo { display: block; width: auto; max-width: none; height: 72px; flex-shrink: 0; object-fit: contain; }
.ys-header .ys-header-title { font-size: calc(32px + 2pt); font-weight: 700; line-height: 1.6; }
.ys-header .ys-header-nav { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1; min-width: 0; }
.ys-header button { appearance: none; font-family: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: none; margin: 0; }
.ys-header .ys-header-nav-link {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 min-height: 44px;
 padding: 7px 12px;
 border: 1px solid var(--header-button-border);
 border-radius: 10px;
 font-size: 14px;
 font-weight: 700;
 line-height: 1.6;
 white-space: nowrap;
 text-decoration: none;
 transition: background-color 200ms, border-color 200ms, color 200ms;
}
.ys-header .ys-header-all { background: var(--header-item-bg); border-color: var(--header-button-border); color: var(--header-button-ink); }
.ys-header .ys-header-all:hover { background: var(--header-item-bg); border-color: var(--header-button-ink); }
.ys-header .ys-header-age-toggle { background: var(--header-item-bg); border-color: var(--header-button-border); color: var(--header-button-ink); }
.ys-header .ys-header-age-toggle:hover, .ys-header .ys-header-age-toggle[aria-expanded='true'] { background: var(--header-item-bg); border-color: var(--header-button-ink); }
.ys-header .ys-header-animals { background: var(--header-item-bg); border-color: var(--header-button-border); color: var(--header-button-ink); }
.ys-header .ys-header-animals:hover { background: var(--header-item-bg); border-color: var(--header-button-ink); }
.ys-header [aria-disabled='true'] { cursor: default; }
.ys-header :is(.ys-header-age, .ys-header-books) { position: relative; }
.ys-header svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ys-header .ys-header-age-toggle svg { width: 17px; height: 17px; transition: transform 200ms; }
.ys-header .ys-header-age-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.ys-header :is(.ys-header-age-list, .ys-header-books-list) {
 position: absolute;
 inset-inline-start: 0;
 top: calc(100% + 10px);
 z-index: 2;
 width: 208px;
 list-style: none;
 margin: 0;
 padding: 7px;
 border: 1px solid var(--header-border);
 border-radius: 14px;
 background: #fff;
 box-shadow: 0 8px 24px #40291f12;
 text-align: right;
}
.ys-header :is(.ys-header-age-list, .ys-header-books-list) li { margin: 0; padding: 0; }
.ys-header :is(.ys-header-age-list, .ys-header-books-list) :is(a, span[aria-disabled]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 13px; border-radius: 8px; color: #40291f; font-size: calc(15px - 2pt); font-weight: 600; text-decoration: none; }
.ys-header :is(.ys-header-age-list, .ys-header-books-list) a:hover { background: #fff0e7; }
.ys-header :is(.ys-header-age-list, .ys-header-books-list) span[aria-disabled] { color: #716256; }
.ys-header :is(.ys-header-age-list, .ys-header-books-list) small { font-size: calc(11px - 2pt); font-weight: 400; }
.ys-header .ys-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ys-header .ys-header-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; border: 1px solid #eed6c8; border-radius: 12px; color: #40291f; background: #fce8dc; line-height: 1; transition: background-color 200ms, border-color 200ms; }
.ys-header .ys-header-icon-button:hover { background: #f6d9c6; border-color: #e9c6b1; }
.ys-header .ys-header-menu-toggle { display: none; }
.ys-header .ys-header-search-panel { position: absolute; inset-inline: 0; top: calc(100% + 10px); padding: 14px; border: 1px solid var(--header-border); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #40291f12; }
.ys-header .ys-header-search-panel form { display: flex; align-items: center; gap: 10px; margin: 0; }
.ys-header .ys-header-search-panel input[type='search'] { flex: 1; min-width: 0; width: auto; height: 46px; padding: 8px 14px; border: 1px solid #d9d8cc; border-radius: 10px; background: #fffdfb; color: #40291f; font: 400 calc(16px - 2pt)/1.6 'Yoanna Cairo', Tahoma, Arial, sans-serif; direction: rtl; }
.ys-header .ys-header-search-panel input::placeholder { color: #756b63; opacity: 1; }
.ys-header .ys-header-submit { min-height: 46px; padding: 7px 20px; border: 1px solid #ed9775; border-radius: 10px; background: #f4a07d; color: #40291f; font-size: calc(15px - 2pt); font-weight: 600; line-height: 1.6; transition: background-color 200ms; }
.ys-header .ys-header-submit:hover { background: #eb8b64; }
.ys-header :is(a, button, input):focus-visible { outline: 3px solid #355847; outline-offset: 3px; }
/* Navigation participates in the row so it cannot overlap either side group. */
.ys-page .ys-header .ys-header-nav .ys-header-nav-link { font-weight: 700; }
.ys-header .ys-header-secondary,
.ys-header .ys-header-meet { background: var(--header-item-bg); color: var(--header-button-ink); border-color: var(--header-button-border); }
.ys-header .ys-header-secondary:hover,
.ys-header .ys-header-meet:hover { border-color: var(--header-button-ink); }
.ys-header .ys-header-actions { gap: 12px; }
.ys-header .ys-header-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 0; border: 0; background: transparent; box-shadow: none; color: var(--header-ink); font-size: 12px; font-weight: 600; line-height: 1.6; text-decoration: none; white-space: nowrap; }
.ys-header .ys-header-contact:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.ys-header .ys-header-commerce { display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; border-inline-start: 1px solid var(--header-border); padding-inline-start: 8px; }
.ys-header .ys-header-commerce-link { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; color: var(--header-ink); font-size: 12px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.ys-header .ys-header-commerce svg { width: 18px; height: 18px; }
.ys-header .ys-header-commerce-link:hover { color: var(--header-ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1200px) and (max-width: 1599px) {
 .ys-header .ys-header-inner { width: clamp(80%, calc(50vw + 520px), 94%); }
 .ys-header .ys-header-nav-link { font-size: 13px; padding-inline: 10px; }
}
@media (min-width: 901px) and (max-width: 1199px) {
 .ys-header .ys-header-inner { width: calc(100% - 48px); flex-wrap: wrap; padding-block: 12px; }
 .ys-header .ys-header-actions { margin-inline-start: auto; }
 .ys-header .ys-header-nav { order: 4; flex: 0 0 100%; }
 .ys-header .ys-header-nav-link { font-size: 13px; padding-inline: 12px; }
}
@media (max-width: 900px) {
 .ys-header .ys-header-logo { width: auto; height: 50px; }
 .ys-header .ys-header-inner { width: calc(100% - 36px); min-height: 76px; padding-block: 0; flex-wrap: nowrap; gap: 12px; justify-content: space-between; }
 .ys-header .ys-header-title { font-size: calc(26px + 2pt); }
 .ys-header .ys-header-actions { margin-inline-start: 0; justify-content: center; }
 .ys-header .ys-header-menu-toggle { display: inline-flex; }
 .ys-header .ys-header-menu-toggle,
 .ys-header .ys-header-menu-toggle:hover,
 .ys-header .ys-header-menu-toggle:active,
 .ys-header .ys-header-menu-toggle[aria-expanded='true'] { background: #B8D99A; border-color: #AD6041; color: #AD6041; }
 .ys-header .ys-header-nav,
 body.home .ys-header .ys-header-nav { display: none; position: absolute; inset-inline: 0; top: calc(100% + 8px); padding: 12px; border: 1px solid var(--header-border); border-radius: 16px; background: var(--header-bg); box-shadow: 0 8px 24px #40291f12; align-items: stretch; flex-direction: column; gap: 12px; max-height: calc(100dvh - 100px - var(--wp-admin--admin-bar--height, 0px)); overflow-y: auto; overscroll-behavior: contain; }
 .ys-header[data-menu-open='true'] .ys-header-nav,
 body.home .ys-header[data-menu-open='true'] .ys-header-nav { display: flex; }
 .ys-header .ys-header-nav-link,
 body.home .ys-header .ys-header-nav-link { width: 100%; justify-content: center; min-height: 44px; padding-inline: 10px; }
 .ys-header :is(.ys-header-age-list, .ys-header-books-list) { position: static; width: 100%; margin-top: 7px; box-shadow: none; }
 .ys-header .ys-header-nav > .ys-header-utilities { display: flex; flex-direction: column; align-items: stretch; flex-shrink: 0; gap: 12px; border-top: 1px solid var(--header-border); padding-top: 12px; }
 .ys-header .ys-header-commerce { flex-basis: auto; border-inline-start: 0; border-top: 1px solid var(--header-border); padding-inline-start: 0; padding-top: 12px; gap: 16px; }
 .ys-header .ys-header-commerce-link { flex-direction: row; gap: 6px; }
 .ys-header .ys-header-nav > .ys-header-search-panel { position: static; flex-shrink: 0; width: 100%; padding: 10px; box-shadow: none; }
}
@media (max-width: 600px) {
 .ys-header .ys-header-actions { gap: 8px; }
 .ys-header .ys-header-search-panel { padding: 10px; }
 .ys-header .ys-header-search-panel form { gap: 6px; flex-wrap: wrap; }
 .ys-header .ys-header-search-panel input[type='search'] { flex-basis: calc(100% - 52px); }
 .ys-header .ys-header-submit { order: 3; width: 100%; }
}
@media (max-width: 360px) {
 .ys-header .ys-header-title { font-size: calc(22px + 2pt); }
 .ys-header .ys-header-logo { width: auto; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
 .ys-header *, .ys-header *::before, .ys-header *::after { transition: none !important; }
}

/* Equal side tracks keep navigation centered; side groups sit next to it. */
.ys-header .ys-header-utilities { display: contents; }
@media (min-width: 901px) {
 .ys-header .ys-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); column-gap: clamp(24px, calc(25.625vw - 386px), 65px); }
 .ys-header .ys-header-brand { grid-column: 1; grid-row: 1; justify-self: end; }
 .ys-header .ys-header-nav { grid-column: 2; grid-row: 1; flex: none; }
 .ys-header .ys-header-utilities { display: flex; align-items: center; gap: 12px; grid-column: 3; grid-row: 1; justify-self: start; }
 .ys-header .ys-header-actions { margin-inline-start: 0; }
}
@media (min-width: 1280px) and (max-width: 1399px) {
 .ys-header .ys-header-inner { width: calc(100% - 48px); }
}
@media (min-width: 901px) and (max-width: 1279px) {
 .ys-header .ys-header-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 12px; padding-block: 12px; }
 .ys-header .ys-header-brand { justify-self: start; }
 .ys-header .ys-header-utilities { grid-column: 2; justify-self: end; }
 .ys-header .ys-header-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: max-content; }
}

/* Books disclosure reuses the existing age-menu appearance and geometry. */
.ys-header .ys-header-books-list { width:208px; max-width:calc(100vw - 36px); }
.ys-header .ys-header-secondary[aria-expanded='true'] { border-color:var(--header-button-ink); }
.ys-header .ys-header-books-split { position:relative; }
.ys-header .ys-header-books-split > a { padding-inline-end:36px; }
.ys-header .ys-header-books-arrow { position:absolute; inset-inline-end:2px; top:2px; bottom:2px; display:flex; align-items:center; justify-content:center; width:32px; padding:0; border:0; border-radius:8px; background:transparent; color:var(--header-button-ink); }
.ys-header .ys-header-books-arrow svg { width:17px; height:17px; }
.ys-header .ys-header-books-arrow[aria-expanded='true'] svg { transform:rotate(180deg); }
@media(max-width:900px) {
 .ys-header .ys-header-books-list { width:100%; max-width:none; }
 .ys-header .ys-header-books-arrow { width:40px; }
 .ys-header .ys-header-books-split > a { padding-inline-end:44px; }
}

/* Approved cream navigation palette; preserve existing control geometry. */

.ys-header .ys-header-nav .ys-header-nav-link {
    background: #2E6F40;
    color: #FFFFFF;
}

.ys-header .ys-header-nav .ys-header-nav-link:is(:hover, :focus-visible, [aria-expanded='true']) {
    background: #245632;
    color: #FFFFFF;
}

.ys-header .ys-header-nav .ys-header-nav-link[aria-current='page'],
.ys-header .ys-header-age[data-current='true'] > .ys-header-nav-link,
.ys-header .ys-header-books[data-current='true'] .ys-header-nav-link {
    background: #245632;
    color: #FFFFFF;
}

.ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a { color:#000000; }
.ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a:hover { background:#EAF8F7; }
.ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a[aria-current='page'] { background:#E2F3F1; }
.ys-header .ys-header-nav :is(a,button):focus-visible { outline:3px solid #000000; outline-offset:3px; }

/* Align the All Songs brand with the existing right edge of its filter column. */
@media (min-width:901px) {
 body.page-template-page-all-songs .ys-header .ys-header-inner { width:min(1440px,80%); }
 body.page-template-page-all-songs .ys-header .ys-header-brand { justify-self:start; }
}
@media (min-width:901px) and (max-width:1200px) {
 body.page-template-page-all-songs .ys-header .ys-header-inner { width:calc(100% - 48px); }
}
/* All Songs uses the same desktop header layout as collection pages. */

/* Static decoration remains in the outer gutter, behind the header content. */
.ys-header::before {
 content:''; display:block; position:absolute; inset:0; z-index:0;
 background:url('../images/decorations/nature-branch.svg') left 20px center / 56px 60px no-repeat;
 opacity:.06; pointer-events:none; animation:none; transition:none;
}
.ys-header .ys-header-inner { z-index:1; }
@media(max-width:1599px) { .ys-header::before { display:none; } }

/* The same approved palette covers search and mobile-menu controls. */
.ys-header .ys-header-icon-button,
.ys-header .ys-header-submit {
 background:#F7F2EC; color:#000000; border-color:#E6DED6; font-weight:700;
 transition:background-color 200ms,border-color 200ms,color 200ms;
}
.ys-header .ys-header-icon-button:hover,
.ys-header .ys-header-submit:hover { background:#EAF8F7; color:#000000; border-color:#E6DED6; }
.ys-header .ys-header-icon-button:is(:active,[aria-expanded='true']),
.ys-header .ys-header-submit:active { background:#E2F3F1; color:#000000; border-color:#E6DED6; }
.ys-header :is(.ys-header-icon-button,.ys-header-submit):focus-visible { outline:3px solid #000000; outline-offset:3px; }

/* Add 15px to the shared header without resizing its contents. */
.ys-header { padding-block:7.5px; }

/* Approved forest/peach navigation palette; homepage review first. */

body.home .ys-header .ys-header-nav .ys-header-nav-link {
    background: #2E6F40;
    color: #FFFFFF;
    border-color: #2E6F40;
    transition: background-color 200ms, color 200ms, border-color 200ms;
}

body.home .ys-header .ys-header-nav .ys-header-nav-link:is(:hover, :focus-visible, [aria-expanded="true"], [aria-current="page"]),
body.home .ys-header .ys-header-age[data-current="true"] > .ys-header-nav-link,
body.home .ys-header .ys-header-books[data-current="true"] .ys-header-nav-link {
    background: #245632;
    color: #FFFFFF;
    border-color: #245632;
}

body.home .ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a {
 color:#315343;
}
body.home .ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a:is(:hover,:focus-visible,[aria-current="page"]) {
 background:#315343; color:#FFF9F2;
}
body.home .ys-header .ys-header-books-arrow {color:#315343;}
body.home .ys-header .ys-header-books-arrow {
    color: #FFFFFF;
}
body.home .ys-header .ys-header-books-arrow:is(:hover,:focus-visible,[aria-expanded="true"]) {
 background:#315343; color:#FFF9F2;
}
body.home .ys-header .ys-header-nav :is(.ys-header-nav-link,.ys-header-books-arrow,.ys-header-age-list a,.ys-header-books-list a):focus-visible {
 outline:3px solid #315343; outline-offset:3px;
}

/* November 2026: unified navigation colors and current-page state. */
.ys-header { --header-item-bg:#064631; }
.ys-header .ys-header-nav .ys-header-nav-link,
body.home .ys-header .ys-header-nav .ys-header-nav-link {
  background:#064631;
  border-color:#064631;
  color:#FFFFFF;
}
.ys-header .ys-header-nav .ys-header-nav-link:is(:hover,:focus-visible),
body.home .ys-header .ys-header-nav .ys-header-nav-link:is(:hover,:focus-visible) {
  background:#547B59;
  border-color:#547B59;
  color:#FFFFFF;
}
/* Expanded menus are interactive, but not automatically the current page. */
.ys-header .ys-header-nav .ys-header-nav-link[aria-expanded="true"]:not([aria-current="page"]),
body.home .ys-header .ys-header-nav .ys-header-nav-link[aria-expanded="true"]:not([aria-current="page"]) {
  background:#547B59;
  border-color:#547B59;
  color:#FFFFFF;
}
.ys-header .ys-header-nav .ys-header-nav-link[aria-current="page"],
.ys-header .ys-header-nav .ys-header-nav-link[aria-current="true"],
.ys-header .ys-header-age[data-current="true"] > .ys-header-nav-link,
.ys-header .ys-header-books[data-current="true"] > .ys-header-nav-link,
body.home .ys-header .ys-header-nav .ys-header-nav-link[aria-current="page"],
body.home .ys-header .ys-header-age[data-current="true"] > .ys-header-nav-link,
body.home .ys-header .ys-header-books[data-current="true"] > .ys-header-nav-link {
  background:#FFD3AC;
  border-color:#E9B98E;
  color:#000000;
}
.ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a[aria-current="page"],
body.home .ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a[aria-current="page"] {
  background:#FFD3AC;
  color:#000000;
}
.ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a:not([aria-current="page"]):hover,
body.home .ys-header .ys-header-nav :is(.ys-header-age-list,.ys-header-books-list) a:not([aria-current="page"]):hover {
  background:#EAF1E9;
  color:#000000;
}
.ys-header .ys-header-books-arrow { color:#FFFFFF; }
.ys-header .ys-header-books[data-current="true"] .ys-header-books-arrow { color:#000000; }

/* Keep all desktop pages on the same single-row header layout. */
@media (min-width:901px) and (max-width:1279px) {
  .ys-header .ys-header-inner {
    display:grid;
    grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);
    gap:8px;
    width:calc(100% - 24px);
    padding-block:0;
  }
  .ys-header .ys-header-brand { grid-column:1; grid-row:1; justify-self:end; }
  .ys-header .ys-header-nav { grid-column:2; grid-row:1; width:auto; justify-self:center; gap:5px; }
  .ys-header .ys-header-utilities { grid-column:3; grid-row:1; justify-self:start; gap:5px; }
  .ys-header .ys-header-nav-link { font-size:12px; padding-inline:6px; }
  .ys-header .ys-header-logo { height:54px; }
  .ys-header .ys-header-title { font-size:25px; }
  .ys-header .ys-header-actions { gap:5px; }
}

/* Current collection: the label is nested in .ys-header-books-split. */
.ys-header .ys-header-books[data-current="true"] .ys-header-books-split > .ys-header-nav-link,
body.home .ys-header .ys-header-books[data-current="true"] .ys-header-books-split > .ys-header-nav-link,
.ys-header .ys-header-books[data-current="true"] > .ys-header-nav-link {
  background:#FFD3AC;
  border-color:#E9B98E;
  color:#000000;
}
/* Keep active navigation visible even while hovering. */
.ys-header .ys-header-books[data-current="true"] .ys-header-books-split > .ys-header-nav-link:hover,
.ys-header .ys-header-books[data-current="true"] > .ys-header-nav-link:hover,
.ys-header .ys-header-nav .ys-header-nav-link[aria-current="page"]:hover {
  background:#FFD3AC;
  border-color:#E9B98E;
  color:#000000;
}
