.top[data-quodmos-header] { position: sticky; top: 0; z-index: 10; display: block; margin: 0; padding: 0; background: var(--panel); border-bottom: 2px solid var(--ink); }
.top[data-quodmos-header] .wrap { width: min(1220px, calc(100% - 42px)); margin: auto; display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 16px 0; flex-wrap: wrap; }
.top[data-quodmos-header] .brand { font: clamp(15px,2vw,23px)/1 var(--heading); display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.top[data-quodmos-header] .brand-title { display: block; color: inherit; text-decoration: none; }
.top[data-quodmos-header] .brand-mark { position: relative; display: grid; place-items: center; flex: none; inline-size: max(37px,2.15em); block-size: max(34px,1.75em); min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; box-shadow: none; }
.top[data-quodmos-header] .brand-symbol { display: block; inline-size: 1.5em; block-size: 1em; background: url(assets/quodmos-brand/quodmos-logo-pixel.png) 41% 50%/141% auto no-repeat; }
html[data-mode=croquis] .top[data-quodmos-header] .brand-symbol { background-image: url(assets/quodmos-brand/quodmos-logo_croquis.png); }
html[data-mode=croquis] .top[data-quodmos-header] .brand-title { inline-size: 4.75em; block-size: 1em; color: transparent; background: url(assets/quodmos-brand/quodmos-texto_croquis.png) center/102.4% auto no-repeat; }
html[dir=rtl] .top[data-quodmos-header] .wrap { direction: ltr; }
html[dir=rtl] .top[data-quodmos-header] :is(.nav,.switch) { direction: rtl; }
.top[data-quodmos-header] .nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.top[data-quodmos-header] .nav-brands { display:inline-flex; align-items:center; gap:18px; }
.top[data-quodmos-header] .nav a { color: inherit; text-decoration: none; font-size: 14px; }
.top[data-quodmos-header] .nav-action { padding: 0; border: 0; border-radius: 0; min-height: 0; background: none; color: inherit; font: inherit; font-size: 14px; box-shadow: none; }
.top[data-quodmos-header] .nav :is(a,button):hover { text-decoration: underline; box-shadow: none; }
.top[data-quodmos-header] :focus-visible { outline: 3px solid #a66632; outline-offset: 4px; }
.top[data-quodmos-header] .nav-game { font-weight: 600; text-transform: uppercase; }
.top[data-quodmos-header] .switch { display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border: 2px solid var(--ink); border-radius: 0; min-height: 0; background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; line-height: 1.4; }
.top[data-quodmos-header] .switch:hover { box-shadow: var(--shadow); }
.top[data-quodmos-header] .kids-menu-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.top[data-quodmos-header] .kids-nav-logo { display: inline-block; width: 90px; aspect-ratio: 2583/545; background: url(../quodmos-kids/logo.png) center/102.32% 182% no-repeat; }
.top[data-quodmos-header] .kids-nav-word { font: 700 14px/1 Poppins,Arial,sans-serif; color: #845600; }
.top[data-quodmos-header] .nav .canosdesign-menu-link { display:grid; place-items:center; min-block-size:44px; }
.top[data-quodmos-header] .canosdesign-nav-logo {
  display:block; block-size:var(--quodmos-title-height,23px); aspect-ratio:1167 / 521;
  background:currentColor;
  -webkit-mask:url(assets/canosdesign/Logo_OS_formatogrande.png) center / 100% 223.992322% no-repeat;
  mask:url(assets/canosdesign/Logo_OS_formatogrande.png) center / 100% 223.992322% no-repeat;
}
@media (max-width: 650px) {
  .top[data-quodmos-header] .wrap { width: calc(100% - 30px); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 9px; padding: 7px 0; }
  .top[data-quodmos-header] .switch { grid-column: 2; grid-row: 1; min-height: 42px; max-width: 46vw; padding: 6px 9px; font-size: 12px; }
  .top[data-quodmos-header] .nav { grid-column: 1/-1; grid-row: 2; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 5px; }
  .top[data-quodmos-header] .nav-brands { display:contents; }
  .top[data-quodmos-header] .nav :is(a,button) { display: grid; place-items: center; min-height: 38px; min-width: 0; text-align: center; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
  .top[data-quodmos-header] .nav-game { grid-column: 3; margin-block-start: 0; }
  .top[data-quodmos-header] .nav .kids-menu-link { grid-column: 2; display: inline-flex; justify-content: center; }
  .top[data-quodmos-header] .kids-nav-logo { width: min(90px,65%); flex-shrink: 1; }
  .top[data-quodmos-header] .nav .canosdesign-menu-link { grid-column:1; grid-row:4; }
  .top[data-quodmos-header] .nav :is(.kids-menu-link,.courses-menu-link) { grid-row:4; }
  html[dir=rtl] .top[data-quodmos-header] .nav .canosdesign-menu-link { grid-column:3; }
  html[dir=rtl] .top[data-quodmos-header] .nav .courses-menu-link { grid-column:1; }
}
