html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.mw-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(239, 233, 221, 0.28);
  border-radius: 2px;
  background: transparent;
  color: #f4efe5;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mw-menu-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mw-menu-state:focus-visible + .mw-menu-toggle {
  outline: 2px solid #e7a38b;
  outline-offset: 3px;
}

.mw-menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mw-site-header.mw-menu-open .mw-menu-toggle span:nth-child(1),
.mw-menu-state:checked + .mw-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mw-site-header.mw-menu-open .mw-menu-toggle span:nth-child(2),
.mw-menu-state:checked + .mw-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.mw-site-header.mw-menu-open .mw-menu-toggle span:nth-child(3),
.mw-menu-state:checked + .mw-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .mw-site-header-inner {
    position: relative;
    height: 64px !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .mw-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .mw-site-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 64px - var(--mw-ui-offset, 0px));
    overflow-y: auto;
    padding: 14px 20px 22px;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    background: #0a120f;
    border-top: 1px solid rgba(239, 233, 221, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  }

  .mw-site-header.mw-menu-open .mw-site-nav,
  .mw-menu-state:checked ~ .mw-site-nav {
    display: flex !important;
  }

  .mw-site-nav a {
    display: flex !important;
    width: 100%;
    min-height: 46px;
    padding: 13px 4px !important;
    align-items: center;
    border-bottom: 1px solid rgba(239, 233, 221, 0.1);
    background: transparent !important;
    color: rgba(244, 239, 229, 0.86) !important;
    font-family: Archivo, system-ui, sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
  }

  .mw-site-nav a:last-child {
    margin-top: 8px;
    padding: 13px 14px !important;
    justify-content: center;
    border: 1px solid rgba(194, 92, 62, 0.65);
    background: #c25c3e !important;
    color: #fff6ee !important;
    font-family: "JetBrains Mono", monospace !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
  }

  body.mw-mobile-menu-open {
    overflow: hidden;
  }

  body:has(.mw-menu-state:checked) #mw-a11y-toggle,
  body:has(.mw-menu-state:checked) #mw-back-to-top {
    visibility: hidden !important;
  }
}

@media (max-width: 1100px) {
  body,
  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .mw-site-logo > span:first-child {
    font-size: 16px !important;
  }

  .mw-site-logo > span:last-child {
    display: none;
  }

  h1 {
    max-width: 100% !important;
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere;
  }

  h2 {
    max-width: 100% !important;
    font-size: clamp(27px, 8vw, 38px) !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere;
  }

  h3 {
    max-width: 100% !important;
    font-size: clamp(20px, 6vw, 28px) !important;
    overflow-wrap: anywhere;
  }

  p,
  li,
  td,
  th {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  [style*="padding:"][style*="40px"] {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  [style*="padding:"][style*="70px"],
  [style*="padding:"][style*="80px"],
  [style*="padding:"][style*="90px"],
  [style*="padding:"][style*="96px"] {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  [style*="display: grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [style*="display: grid"] > * {
    min-width: 0 !important;
    grid-column: auto !important;
  }

  .mw-evidence-map-grid {
    gap: 52px !important;
    align-items: stretch !important;
  }

  .mw-evidence-map-left,
  .mw-evidence-map-right {
    padding-top: 30px !important;
    border-right: 0 !important;
    border-left: 0 !important;
  }

  .mw-evidence-map-center {
    margin: 8px 0 6px !important;
    padding: 0 !important;
  }

  .mw-evidence-map-center > span,
  .mw-evidence-map-left a > span[style*="width: 56px"],
  .mw-evidence-map-right a > span[style*="width: 56px"] {
    display: none !important;
  }

  .mw-evidence-map-label {
    top: 0 !important;
    right: auto !important;
    left: 0 !important;
    max-width: 100%;
    line-height: 1.5 !important;
  }

  .mw-evidence-map-right {
    margin-top: 14px !important;
  }

  [style*="display: flex"][style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
  }

  [style*="min-width:"] {
    min-width: 0 !important;
  }

  [style*="width: 460px"],
  [style*="width: 520px"],
  [style*="width: 560px"],
  [style*="width: 600px"] {
    width: 100% !important;
  }

  [style*="margin-top: -60px"] {
    margin-top: -24px !important;
  }

  [style*="position: sticky"][style*="top: 68px"] {
    position: static !important;
  }

  [style*="position: sticky"][style*="top: 68px"] > div,
  nav[style*="top: 68px"] > div {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  .mw-hero-media {
    max-height: none !important;
  }

  .mw-hero-image {
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  .mw-site-footer {
    padding: 52px 20px 38px !important;
  }

  .mw-site-footer [style*="gap: 60px"] {
    gap: 30px !important;
  }

  .mw-site-footer [style*="display: flex"] {
    width: 100%;
  }

  .mw-site-footer [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 420px) {
  [style*="padding:"][style*="40px"] {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .mw-site-header-inner {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .mw-site-nav {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mw-site-footer {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}
