html,
body {
  overflow-x: hidden;
}

html.dpm-locked {
  overflow: hidden;
}

button.mobile-menu-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #888;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

button.mobile-menu-btn:focus-visible {
  outline: 2px solid #0d1b2e;
  outline-offset: 2px;
}

@media screen and (min-width: 700px) {
  button.mobile-menu-btn {
    margin-right: 0;
  }
}

@media screen and (min-width: 960px) {
  button.mobile-menu-btn {
    display: none;
  }
}

.dpm {
  --dpm-bg: #0d1b2e;
  --dpm-ink: #f2f5f9;
  --dpm-muted: #a9b8cc;
  --dpm-rule: rgba(255, 255, 255, 0.1);
  --dpm-pin: #e5483b;
  --dpm-cta-bg: #ffffff;
  --dpm-cta-ink: #0d1b2e;
  --dpm-font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.dpm[hidden] {
  display: none;
}

.dpm .dpm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dpm .dpm-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(88vw, 380px);
  display: flex;
  flex-direction: column;
  background: var(--dpm-bg);
  color: var(--dpm-ink);
  font-family: var(--dpm-font);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dpm.is-open .dpm-backdrop {
  opacity: 1;
}

.dpm.is-open .dpm-panel {
  transform: none;
}

.dpm .dpm-head {
  display: flex;
  justify-content: flex-end;
  padding: 10px 10px 4px;
}

.dpm .dpm-close,
.dpm .dpm-toggle {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--dpm-ink);
  cursor: pointer;
}

.dpm .dpm-toggle svg {
  transition: transform 0.2s ease;
}

.dpm .dpm-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.dpm .dpm-nav {
  flex: 1 0 auto;
}

.dpm .dpm-list,
.dpm .dpm-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dpm .dpm-list {
  padding: 0 8px 20px;
}

.dpm .dpm-list > .dpm-item {
  margin: 0;
  border-bottom: 1px solid var(--dpm-rule);
}

.dpm .dpm-list > .dpm-item:last-child {
  border-bottom: 0;
}

.dpm .dpm-row {
  display: flex;
  align-items: center;
}

.dpm .dpm-link {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px 8px 24px;
  color: var(--dpm-ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.dpm .dpm-text {
  display: block;
}

.dpm .dpm-label {
  display: block;
}

.dpm .dpm-desc {
  display: block;
  margin-top: 3px;
  color: var(--dpm-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.dpm .dpm-sub {
  margin: 0 0 14px 24px;
  border-left: 1px solid var(--dpm-rule);
}

.dpm .dpm-sub .dpm-item {
  margin: 0;
}

.dpm .dpm-sub .dpm-link {
  min-height: 44px;
  padding: 6px 12px 6px 18px;
  color: var(--dpm-muted);
  font-size: 16px;
  font-weight: 400;
}

.dpm .dpm-link[aria-current="page"] {
  color: var(--dpm-ink);
}

.dpm .dpm-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  background: var(--dpm-pin);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.dpm .dpm-sub .dpm-link[aria-current="page"]::before {
  left: -5px;
}

.dpm .dpm-foot {
  position: sticky;
  bottom: 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--dpm-bg);
  border-top: 1px solid var(--dpm-rule);
}

.dpm .dpm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  background: var(--dpm-cta-bg);
  color: var(--dpm-cta-ink);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.dpm a:focus-visible,
.dpm button:focus-visible {
  outline: 2px solid var(--dpm-ink);
  outline-offset: -2px;
}

.dpm .dpm-cta:focus-visible {
  outline-offset: 3px;
}

@media (hover: hover) {
  .dpm .dpm-link:hover,
  .dpm .dpm-toggle:hover,
  .dpm .dpm-close:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dpm .dpm-backdrop,
  .dpm .dpm-panel,
  .dpm .dpm-toggle svg {
    transition: none;
  }
}
