/* Shared header: language on its own top row, brand and navigation below. */
.site-header,.topbar,.landing-page .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:24px;row-gap:8px;height:auto;min-height:0;padding:12px 36px 18px}
.site-header>.language-picker,.topbar>.language-picker{grid-column:2;grid-row:1;justify-self:end;margin:0;font-size:11px;padding:5px 7px}
.site-header>.wordmark,.topbar>.brand{grid-column:1;grid-row:2;display:flex;align-items:flex-end;gap:10px;min-width:0;text-decoration:none;color:inherit}
.site-header nav,.topbar nav,.landing-page .site-header nav{grid-column:2;grid-row:2;align-self:end;line-height:1.45;display:flex;align-items:center;justify-content:flex-end;gap:22px;order:0;width:auto;margin:0;font-size:13px;color:#6b746c}
.site-header nav a,.topbar nav a{color:inherit;text-decoration:none;white-space:nowrap}
.site-header nav a:hover,.topbar nav a:hover{color:#343b36}
.site-header .brand-name,.topbar .brand-name,.landing-page .wordmark .brand-name{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0;padding:0;border:0;font:26px Georgia,serif!important;letter-spacing:0!important}
.site-header .brand-name small,.topbar .brand-name small{display:block;font:500 12px/1.45 system-ui;letter-spacing:0;margin:0!important;padding:0!important;border:0!important;white-space:nowrap}
@media(max-width:640px){
.site-header,.topbar,.landing-page .site-header{padding:10px 12px 14px;column-gap:8px;row-gap:8px}
.site-header>.wordmark,.topbar>.brand{gap:5px}
.site-header .brand-name,.topbar .brand-name,.landing-page .wordmark .brand-name{font-size:18px!important;gap:5px}
.site-header .brand-name small,.topbar .brand-name small{font-size:10px;max-width:none;line-height:1.45}
.site-header nav,.topbar nav,.landing-page .site-header nav{gap:9px}
.site-header nav a,.topbar nav a{font-size:11px}
}
@media(max-width:360px){
.site-header,.topbar,.landing-page .site-header{padding-inline:10px;column-gap:6px}
.site-header .brand-name,.topbar .brand-name,.landing-page .wordmark .brand-name{font-size:16px!important;gap:4px}
.site-header .brand-name small,.topbar .brand-name small{font-size:9px;max-width:none}
.site-header nav,.topbar nav,.landing-page .site-header nav{gap:6px}
.site-header nav a,.topbar nav a{font-size:10px}
}

/* Personal collections sit beside the existing account control. */
.site-header nav .personal-nav-link,.topbar nav .personal-nav-link{display:inline-flex;align-items:center;min-height:44px}
.site-header nav .personal-nav-link[aria-current=page],.topbar nav .personal-nav-link[aria-current=page]{color:var(--accent,#9e543e);text-decoration:underline;text-underline-offset:5px}
@media(max-width:760px){
.site-header,.topbar,.landing-page .site-header{grid-template-columns:minmax(0,1fr) minmax(0,1.65fr)}
.site-header nav,.topbar nav,.landing-page .site-header nav{grid-column:2;grid-row:2;align-self:center;justify-self:stretch;flex-wrap:nowrap;gap:8px;font-size:11px;min-width:0}
.site-header nav a,.topbar nav a,.site-header nav .text-button,.topbar nav .text-button{font-size:inherit;white-space:normal;text-align:center;line-height:1.3;min-width:0;flex:0 1 auto}
.site-header .brand-name,.topbar .brand-name,.landing-page .wordmark .brand-name{min-width:0}
.site-header .brand-name small,.topbar .brand-name small{white-space:normal}
}
@media(max-width:360px){.site-header nav,.topbar nav,.landing-page .site-header nav{gap:5px;font-size:10px}}
.home-course-link{margin:30px 0 0;text-align:center;font-size:14px;color:var(--muted,#788078)}
.home-course-link a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 12px;text-decoration:underline;text-underline-offset:4px}

/* The cat kalimba is tightly framed; the old padded artwork used a zoom/offset. */
.logo-frame .musicatte-logo{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;left:auto;top:auto}
