/* Logo retains its web-header top behavior without a visible helper caption.
   Native operating-system status-bar gestures remain outside web control. */
@media(max-width:767px){
 body .page-top-floating{display:none!important}
 body .site-header .brand.v64-mobile-top{min-width:60px;min-height:60px}
 body .site-header .brand.v64-mobile-top:focus-visible{outline:2px solid #c5e4ec;outline-offset:3px;border-radius:8px}
}

/* Symmetric hit surfaces around a true centred brand, without restyling the glass. */
@media screen and (max-width:767px) {
 html body[data-page] .nav-shell > .site-header {
  --miva-mobile-nav-side:clamp(86px,24vw,100px);
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;column-gap:6px;
 }
 html body[data-page] .nav-shell .site-header > :is(.language-pill,.menu-toggle) {
  box-sizing:border-box;inline-size:var(--miva-mobile-nav-side);
  min-block-size:44px;block-size:44px;margin:0;
 }
 html body[data-page] .nav-shell .site-header > .language-pill {
  display:flex;align-items:stretch;padding:2px;
 }
 html body[data-page] .nav-shell .site-header > .language-pill > a {
  flex:1 1 0;min-inline-size:0;min-block-size:0;max-block-size:none;padding-inline:0;justify-content:center;
 }
 html body[data-page] .nav-shell .site-header > .menu-toggle {
  justify-content:center;gap:clamp(4px,1.7vw,8px);padding-inline:6px;
 }
 html body[data-page] .nav-shell .site-header > .brand {
  min-inline-size:44px;min-block-size:44px;align-self:center;justify-content:center;
 }
 html body[data-page] .nav-shell .site-header > .brand > img[src="assets/miva-logo.png"] {
  width:clamp(74px,19vw,80px)!important;height:auto!important;
 }
 html body[data-page] .nav-shell .site-header > .brand:is(:active,:focus-visible,.is-touch-pressed,.is-interaction-pressed) > img {
  filter:brightness(1.22) drop-shadow(0 0 5px #f1c87785);
 }
}
@media screen and (max-width:767px) and (prefers-reduced-motion:no-preference) {
 html body.motion-on:not(.motion-paused) .nav-shell .site-header > .brand > img {transition:filter 140ms ease-out}
}

/* Warm local reflection, not a full header flash or a layout change. */
@media screen and (max-width:767px) {
 html body[data-page] .nav-shell .site-header > .brand {border-radius:10px;-webkit-tap-highlight-color:transparent}
 html body[data-page] .nav-shell .site-header > .brand:is(.miva-brand-touch-light,:active,.is-interaction-pressed) {
  background:radial-gradient(ellipse at center,#e7af5145 0%,#d4932428 40%,transparent 73%);
 }
 html body[data-page] .nav-shell .site-header > .brand:is(.miva-brand-touch-light,:active,.is-interaction-pressed) > img {
  transition:none !important;
  filter:brightness(1.43) drop-shadow(0 0 4px #ffd283) drop-shadow(0 0 10px #eda63f90);
 }
}
@media screen and (max-width:767px) and (forced-colors:active) {
 html body[data-page] .nav-shell .site-header > .brand:is(.miva-brand-touch-light,:active,.is-interaction-pressed) {outline:2px solid Highlight}
}

/* The glass faces should be symmetrical, not just the outer hit boxes. */
@media screen and (max-width:767px) {
 html body[data-page] .nav-shell > .site-header {
  --miva-mobile-nav-side:clamp(72px,20.7vw,88px);
 }
 html body[data-page] .nav-shell > .site-header > :is(.language-pill,.menu-toggle) {
  min-block-size:44px!important;block-size:44px!important;max-block-size:44px!important;
  border-radius:999px!important;
 }
 html body[data-page] .nav-shell > .site-header > .language-pill::before {
  inset:0;border-radius:999px;
 }
 html body[data-page] .nav-shell > .site-header > .language-pill > a::before {
  inset:4px 1px;
 }
 html body[data-page] .nav-shell > .site-header > a.brand > img[src="assets/miva-logo.png"] {
  width:calc(var(--miva-mobile-nav-side) + 4px)!important;
  height:auto!important;
 }
}

/* A slightly tighter face without reducing the 44px touch areas. */
@media screen and (max-width:767px) {
 html body[data-page] .nav-shell > .site-header > .menu-toggle {
  font-size:13px!important;
  padding-inline:5px;
 }
 html body[data-page] .nav-shell > .site-header > .language-pill > a {
  font-size:13px!important;
 }
}
