/* Shared Ember artwork. Only the flame moves; its wordmark and hit area stay still. */
.brand img[src*="ember-flame.png"], .mw-logo-icon {
  transform-origin: 50% 86%;
}
html[data-ember-motion="on"] .brand img[src*="ember-flame.png"],
html[data-ember-motion="on"] .mw-logo-icon,
html[data-ember-motion="subtle"] .brand img[src*="ember-flame.png"],
html[data-ember-motion="subtle"] .mw-logo-icon,
html[data-ember-motion="paused"] .brand img[src*="ember-flame.png"],
html[data-ember-motion="paused"] .mw-logo-icon {
  animation: ember-brand-flicker 5.4s cubic-bezier(.45,0,.55,1) infinite;
}
html[data-ember-motion="subtle"] .brand img[src*="ember-flame.png"],
html[data-ember-motion="subtle"] .mw-logo-icon { animation-duration: 10.8s; }
html[data-ember-motion="paused"] .brand img[src*="ember-flame.png"],
html[data-ember-motion="paused"] .mw-logo-icon { animation-play-state: paused; }
@keyframes ember-brand-flicker {
  0%, 100% { transform: scale(1,1) rotate(-.4deg); filter: brightness(1) drop-shadow(0 0 3px #ed791f28); }
  22% { transform: scale(.985,1.025) rotate(.55deg); filter: brightness(1.1) drop-shadow(0 0 5px #ed791f45); }
  44% { transform: scale(1.01,.99) rotate(-.65deg); filter: brightness(.98) drop-shadow(0 0 3px #ed791f28); }
  69% { transform: scale(.99,1.035) rotate(.5deg); filter: brightness(1.13) drop-shadow(0 0 6px #ed791f48); }
  84% { transform: scale(1.005,1.01) rotate(-.2deg); filter: brightness(1.04) drop-shadow(0 0 4px #ed791f35); }
}
/* The source artwork is square with transparent sides. Keep those sides out of
   the layout gap without stretching or replacing the original flame. */
.site-header .brand { gap: 8px; min-height: 56px; }
.site-header .brand img[src*="ember-flame.png"] {
  width: 50px; height: 50px; max-width: none; object-fit: contain;
  flex: 0 0 50px; margin-inline: -8px;
}
.site-header .brand .brand-mark { display: inline-flex; flex: none; font-size: 0; line-height: 0; }
.site-header .brand > span:last-child { line-height: 1.12; }
.ember-motion-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 5px 10px; margin: 0;
  border: 1px solid #514730; border-radius: 3px; background: transparent;
  color: #cbb892; font: inherit; font-size: 13px; line-height: 1.3;
  cursor: pointer; white-space: nowrap;
}
.mw-footer > .ember-motion-toggle { margin-block: 8px; }
.ember-motion-toggle:focus-visible { outline: 2px solid #f2d091; outline-offset: 3px; }
.ember-motion-toggle:disabled { opacity: .7; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .ember-motion-toggle:hover:not(:disabled) { border-color: #b39763; color: #f2d091; }
}
@media (max-width: 540px) {
  .site-header .brand img[src*="ember-flame.png"] { width: 42px; height: 44px; flex-basis: 42px; margin-inline: -6px; }
  .site-header .brand { gap: 6px; }
  .site-footer:has(.ember-motion-toggle) { flex-wrap: wrap; row-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand img[src*="ember-flame.png"], .mw-logo-icon { animation: none !important; transform: none !important; filter: none !important; }
}
@media print { .ember-motion-toggle { display: none; } }
