/* Existing palette, font and components, extended for the requested tools. */
/* Legacy Music uses paper/ink; themed pages override these aliases on their body. */
:root { --cream:var(--paper,#eee8d8); --black:var(--ink,#171714); }
body .site-nav { position:relative; flex-wrap:wrap; gap:0; background:var(--black); color:var(--cream); padding:16px 4vw; min-height:80px; }
.site-nav .brand-lockup small { display:none; }
.site-nav .brand-image { width:128px; color:var(--cream); }
.site-nav .brand-lockup { min-height:44px; }
.header-tools { display:flex; align-items:center; margin-left:auto; gap:4px; }
.tool-button { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex:0 0 44px; padding:11px; border:0; background:none; color:inherit; cursor:pointer; font:26px "DM Sans",sans-serif; }
.tool-button svg,.piece-favorite svg { width:22px; height:22px; flex:0 0 22px; }
body .site-nav .menu-toggle { display:inline-flex; border:0; padding:11px; }
body .site-nav #main-menu { display:none; }
body.menu-open .site-nav #main-menu { display:flex; position:static; width:100%; padding:24px 0 8px; flex-direction:column; align-items:flex-start; gap:4px; max-height:none; background:var(--black); }
body .site-nav #main-menu a { color:var(--cream); min-height:44px; min-width:44px; }
.site-tools-panel[hidden] { display:none; }
.site-tools-panel { padding:24px 4vw 40px; color:var(--cream); background:var(--black); border-bottom:1px solid currentColor; }
.tools-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.tools-heading h2 { margin:0; }
#site-tools-content { max-width:800px; }
#site-tools-content label { display:block; margin-bottom:12px; }
#site-tools-content input { width:100%; min-height:48px; padding:12px; border:1px solid currentColor; border-radius:0; background:none; color:inherit; font:16px "DM Sans",sans-serif; }
#site-tools-content a { display:flex; align-items:center; min-height:44px; padding:10px 0; color:inherit; }
.search-results { display:grid; }
#site-search::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; width:16px; height:16px; margin-right:2px; cursor:pointer; background-color:var(--cream); -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 2l12 12M14 2L2 14" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>') center/contain no-repeat; mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2 2l12 12M14 2L2 14" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>') center/contain no-repeat; }
.piece-favorite { display:flex; align-items:center; gap:12px; width:fit-content; max-width:100%; min-height:44px; margin:16px 0; padding:10px 0; border:0; background:none; color:inherit; font:14px "DM Sans",sans-serif; cursor:pointer; }
.piece-favorite[aria-pressed=true] svg { fill:currentColor; }
body .minimal-footer { display:block; padding:0 4vw; background:var(--black); color:var(--cream); font:14px/1.6 "DM Sans",sans-serif; }
.minimal-footer > * { border-top:1px solid #eee8d840; }
body .minimal-footer .footer-newsletter { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:32px; padding:40px 0; }
.minimal-footer .footer-newsletter p { max-width:600px; margin:0; font:14px/1.7 "DM Sans",sans-serif; text-transform:none; letter-spacing:0; }
.minimal-footer .epure-newsletter { padding:12px 32px; border:1px solid currentColor; white-space:nowrap; text-align:center; }
.minimal-footer details { padding:0; }
.minimal-footer summary { display:flex; align-items:center; justify-content:space-between; min-height:76px; cursor:pointer; list-style:none; }
.minimal-footer summary::-webkit-details-marker { display:none; }
.minimal-footer summary::after { content:'⌄'; margin-left:24px; }
.minimal-footer details[open] summary::after { content:'⌃'; }
body .minimal-footer .footer-links { display:flex; flex-direction:row; flex-wrap:wrap; gap:4px 28px; padding-bottom:24px; }
.minimal-footer a { text-transform:none; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.minimal-footer .footer-links a { min-width:44px; }
body .minimal-footer .footer-social { display:block; margin:0; padding:24px 0 0; }
.minimal-footer .footer-social p { margin:0 0 12px; text-transform:none; font-size:14px; letter-spacing:0; }
body .minimal-footer .footer-signature { display:flex; align-items:center; gap:32px; padding:48px 0 24px; }
.minimal-footer .brand-image { width:170px; }
.minimal-footer .footer-signature p { margin:0; font-size:10px; }
body .tool-button:focus-visible,body .minimal-footer :focus-visible,body .site-tools-panel :focus-visible,body .piece-favorite:focus-visible,body .mission-button:focus-visible { outline:2px solid var(--cream); outline-offset:3px; }
/* One slow sweep, visible at rest; a matching arrow travels just two pixels. */
.mission-button { overflow:hidden; animation:mission-ink 4s ease-in-out infinite; }
.mission-button::before { transition:none; animation:mission-sweep 4s ease-in-out infinite; }
.mission-button span { animation:mission-arrow 4s ease-in-out infinite; }
@keyframes mission-sweep { 0%,15%,100% { transform:scaleX(0); } 45%,70% { transform:scaleX(1); } }
@keyframes mission-ink { 0%,15%,100% { color:var(--cream); } 45%,70% { color:var(--black); } }
@keyframes mission-arrow { 0%,15%,100% { transform:none; } 45%,70% { transform:translate(2px,-2px); } }
@media(max-width:700px) { body .minimal-footer .footer-newsletter { flex-direction:column; align-items:stretch; gap:24px; } .site-nav .brand-image { width:112px; } .header-tools { gap:0; } }
@media(prefers-reduced-motion:reduce) { body .mission-button { animation:none; color:var(--black); } body .mission-button::before { animation:none; transform:scaleX(1); } body .mission-button span { animation:none; transform:none; } }

/* Non-modal preview: the header remains available and outside links still work. */
body .mk-newsletter { inset:auto 24px 24px auto; margin:0; height:fit-content; max-height:calc(100dvh - 112px); border-color:var(--black); background:var(--cream); color:var(--black); }
body .mk-newsletter-close { position:static; display:flex; margin:0 0 4px auto; align-items:center; justify-content:center; }
body .mk-newsletter :focus-visible { outline-color:var(--black); }
/* Keep the visual box discreet while the real checkbox hit area is 44px. */
body .mk-newsletter-consent { grid-template-columns:44px 1fr; }
body .mk-newsletter input[type=checkbox] { appearance:none; -webkit-appearance:none; width:44px; height:44px; margin:0; border:0; padding:0; border-radius:0; background:transparent url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"%3E%3Crect x="1" y="1" width="20" height="20" fill="none" stroke="%23121510" stroke-width="1.5"/%3E%3C/svg%3E') center/22px 22px no-repeat; cursor:pointer; }
body .mk-newsletter input[type=checkbox]:checked { background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"%3E%3Crect x="1" y="1" width="20" height="20" fill="%23121510"/%3E%3Cpath d="m5 11 4 4 8-9" fill="none" stroke="%23eee8d8" stroke-width="2"/%3E%3C/svg%3E'); }
body .mk-newsletter-consent label { padding-top:10px; }
body .mk-newsletter-consent a { display:flex; align-items:center; min-height:44px; padding-top:0; }
@media(max-width:700px) { body .mk-newsletter { right:16px; bottom:16px; } }
/* Explicitly remove closed accordion descendants from layout and hit testing. */
body .minimal-footer details:not([open]) > .footer-links { display:none; }

/* Text remains unchanged; enlarge only the real interactive box. */
body main .text-link,
body main .mission-link,
body .privacy-copy a,
body .news-grid a,
body .soutien-numbers a,
body main p > a:not([class]) {
 display:inline-flex;
 align-items:center;
 min-width:44px;
 min-height:44px;
 vertical-align:middle;
}
/* Preserve each native form's colors and a discreet 20px checkbox drawing,
   while the actual keyboard/pointer target is 44px rather than 12px. */
body main .consent { align-items:center; }
body main :is(.consent,.motion-option) input[type=checkbox] {
 appearance:none;
 -webkit-appearance:none;
 position:relative;
 display:inline-grid;
 place-content:center;
 width:44px;
 height:44px;
 flex:0 0 44px;
 margin:0;
 padding:0;
 border:0;
 background:none;
 color:inherit;
 cursor:pointer;
}
body main :is(.consent,.motion-option) input[type=checkbox]::before {
 content:"";
 width:20px;
 height:20px;
 border:1.5px solid currentColor;
}
body main :is(.consent,.motion-option) input[type=checkbox]:checked::after {
 content:"✓";
 position:absolute;
 inset:0;
 display:grid;
 place-content:center;
 font:700 18px "DM Sans",sans-serif;
}
/* Existing controls between 24px and 43px must pass the same 44px gate. */
body main :is(button,input:not([type=hidden]),select,textarea) {
 min-width:44px;
 min-height:44px;
}
