/* piano.css — THE piano's colours. The only file that colours the keys.

   The piano is one module: its markup is partials/header.html, injected into
   every page by tools/inject.py, and that partial links THIS stylesheet, so
   every page that has the piano has these colours. Change the keys here,
   run tools/inject.py (it stamps this file's ?v= hash into the partial),
   upload, and every page changes together.

   Until 2026-10-25 the keys were coloured in four places at once
   (wp-content/uploads/elementor/css/post-169.css, header-theme.css,
   home-theme.css and greedings-theme.css), loaded in different combinations
   per page, so the homepage could change while the other eight did not. Those
   colour rules were removed; only the key SHAPES stay in post-169.css (sizes,
   borders, radius, the press-down on hover).

   Keys are addressed by position (:nth-child), so the ORDER of the keys in
   partials/header.html is load-bearing. White keys are 1,3,5,6,8,10,12 and
   alternate red and pine; black keys are 2,4,7,9,11.

   Anchored on the module's own classes (.elementor-element-60b546c.piano-menu),
   not on a page wrapper, so the rules travel with the header. Specificity
   (0,5,3) with !important beats post-169's (0,3,3) shapes file. */

.elementor-element-60b546c.piano-menu {
    --piano-red: #CB1511;
    --piano-red-deep: #7E0D0A;
    --piano-pine: #1B6C24;
    --piano-pine-deep: #0E3A14;
    --piano-ivory: #EDE7D8;
    --piano-gold: #E0B43F;
}

/* White keys: red */
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(1) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(5) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(8) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(12) > a.wpr-menu-item {
    background: linear-gradient(180deg, var(--piano-red) 0%, var(--piano-red-deep) 100%) !important;
}

/* White keys: pine */
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(3) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(6) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(10) > a.wpr-menu-item {
    background: linear-gradient(180deg, var(--piano-pine) 0%, var(--piano-pine-deep) 100%) !important;
}

/* White keys: label and depth */
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(1) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(3) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(5) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(6) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(8) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(10) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(12) > a.wpr-menu-item {
    color: var(--piano-ivory) !important;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35) !important;
}

/* Black keys */
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(2) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(4) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(7) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(9) > a.wpr-menu-item,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li:nth-child(11) > a.wpr-menu-item {
    background: linear-gradient(180deg, #2a2a2a 0%, #000000 100%) !important;
    color: #f2f2ea !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Hover and keyboard focus, every key: the key lights up and its label turns
   gold. The press-down itself (translateY) stays in post-169.css. */
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li > a.wpr-menu-item:hover,
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li > a.wpr-menu-item:focus-visible {
    color: var(--piano-gold) !important;
    filter: brightness(1.18);
}

/* The key of the page you are on: gold label. inject.py marks it with
   .wpr-active-menu-item and aria-current="page". The attribute lifts this to
   (0,6,3), above header-theme.css's generic active-item grey (0,6,0), which
   painted #666 on a red key. */
.elementor-element-60b546c.piano-menu ul.wpr-nav-menu > li > a.wpr-menu-item.wpr-active-menu-item[aria-current="page"] {
    color: var(--piano-gold) !important;
}
