/* Controle único no cabeçalho, independente do menu e da preferência do navegador. */
.site-header .presentation-toggle {
  --switch-surface: #173043;
  --switch-border: #3e5c73;
  --switch-symbol: #9cb5c9;
  --switch-thumb: #dceefb;
  --switch-active: #194767;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 70px; width: 70px; height: 44px;
  margin: 0; padding: 4px; border: 0; border-radius: 10px;
  background: transparent; text-decoration: none; cursor: pointer;
}
.presentation-toggle-track {
  display: block; position: relative; width: 62px; height: 32px;
  border: 1px solid var(--switch-border); border-radius: 18px;
  background: var(--switch-surface);
}
.presentation-toggle-thumb {
  position: absolute; left: 3px; top: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--switch-thumb); box-shadow: 0 1px 3px #0002;
}
.site-header .presentation-toggle svg {
  position: absolute; top: 7px; width: 16px; height: 16px;
  fill: none; stroke: var(--switch-symbol); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.site-header .presentation-toggle .presentation-toggle-moon { left: 7px; stroke: var(--switch-active); }
.site-header .presentation-toggle .presentation-toggle-sun { right: 7px; }
.site-header .presentation-toggle:hover .presentation-toggle-track { border-color: #7399b7; }
.site-header .presentation-toggle:focus-visible { outline: 3px solid #86c7f7; outline-offset: 2px; }
html[data-theme="light"] .site-header .presentation-toggle {
  --switch-surface: #edf3f8; --switch-border: #b0c5d6;
  --switch-symbol: #647c90; --switch-thumb: #256a9f; --switch-active: #fff;
}
.presentation-toggle[aria-checked="true"] .presentation-toggle-thumb { transform: translateX(30px); }
.site-header .presentation-toggle[aria-checked="true"] .presentation-toggle-moon { stroke: var(--switch-symbol); }
.site-header .presentation-toggle[aria-checked="true"] .presentation-toggle-sun { stroke: var(--switch-active); }
html[data-theme="light"] .site-header .presentation-toggle:focus-visible { outline-color: #256a9f; }
@media (max-width:1399px) {
  .site-header .brand { margin-right: auto; }
  body .site-header { gap: 12px; }
}
@media (max-width:380px) {
  body .site-header { gap: 8px; }
  .site-header .mobile-menu summary>span { display: none; }
}
@media print { .site-header .presentation-toggle { display: none; } }
