/* Shared DBM shell: one header, one footer, one responsive geometry. */
.dbm-shell-page {
  --dbm-shell-acid: #7ec820;
  --dbm-shell-line: rgba(126, 200, 32, .24);
  --dbm-shell-muted: #d1e2d9;
  --dbm-shell-footer-bg: #091612;
  overflow-x: hidden;
}

.dbm-shell-page .dbm-shell-header,
.dbm-shell-page .dbm-shell-header *,
.dbm-shell-page .dbm-shell-footer,
.dbm-shell-page .dbm-shell-footer * {
  box-sizing: border-box;
}

.dbm-shell-page .dbm-shell-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  border-bottom: 1px solid var(--dbm-shell-line);
  background: rgba(5, 11, 10, .94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dbm-shell-page .dbm-shell-container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.dbm-shell-page .dbm-shell-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.dbm-shell-page .dbm-shell-brand {
  flex: 0 0 auto;
  color: var(--dbm-shell-acid);
  font: 800 12px/1.3 "Share Tech Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.dbm-shell-page .dbm-shell-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.dbm-shell-page .dbm-shell-links a {
  color: #dce7df;
  font: 600 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  text-underline-offset: 4px;
}

.dbm-shell-page .dbm-shell-links a:hover {
  color: var(--dbm-shell-acid);
  text-decoration: underline;
}

.dbm-shell-page .dbm-shell-links a:focus-visible,
.dbm-shell-page .dbm-shell-footer a:focus-visible {
  outline: 3px solid var(--dbm-shell-acid);
  outline-offset: 4px;
  border-radius: 3px;
}

.dbm-shell-page .dbm-shell-footer {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 0;
  padding: 38px 0 44px;
  border-top: 2px solid rgba(126, 200, 32, .45);
  background: linear-gradient(180deg, rgba(9, 22, 18, .98), rgba(5, 12, 10, .98));
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .04);
  color: var(--dbm-shell-muted);
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, sans-serif;
}

.dbm-shell-page .dbm-shell-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: min(220px, 32vw);
  height: 2px;
  background: linear-gradient(90deg, var(--dbm-shell-acid), rgba(126, 200, 32, 0));
}

.dbm-shell-page .dbm-shell-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 30px;
}

.dbm-shell-page .dbm-shell-footer-grid > nav {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(126, 200, 32, .16);
}

.dbm-shell-page .dbm-shell-footer h2,
.dbm-shell-page .dbm-shell-footer h3 {
  margin: 0 0 11px;
  padding: 0;
  border: 0;
  color: #f1f7f3;
  font: 800 12px/1.3 "Share Tech Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dbm-shell-page .dbm-journey-rail {
  width: min(1120px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  box-sizing: border-box;
}

.dbm-shell-page .dbm-shell-footer p {
  max-width: 34em;
  margin: 6px 0;
  color: #d1e2d9;
}

.dbm-shell-page .dbm-shell-footer a {
  display: block;
  width: fit-content;
  margin: 6px 0;
  color: #f0f8f3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dbm-shell-page .dbm-shell-footer a:hover {
  color: var(--dbm-shell-acid);
}

.dbm-shell-page .dbm-shell-footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--dbm-shell-line);
  font-size: 12px;
}

.dbm-shell-page .dbm-shell-footer-legal p {
  margin: 0;
}

.dbm-shell-page .dbm-shell-footer-legal a {
  display: inline;
  margin: 0 8px 0 0;
}

@media (max-width: 960px) {
  .dbm-shell-page .dbm-shell-nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 13px 0;
  }

  .dbm-shell-page .dbm-shell-links {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 15px;
  }
}

@media (max-width: 760px) {
  .dbm-shell-page .dbm-shell-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 18px;
  }

  .dbm-shell-page .dbm-shell-footer-legal {
    display: block;
  }

  .dbm-shell-page .dbm-shell-footer-legal p + p {
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .dbm-shell-page .dbm-shell-container,
  .dbm-shell-page .dbm-shell-footer {
    width: min(100% - 24px, 1120px);
  }

  .dbm-shell-page .dbm-shell-brand {
    white-space: normal;
  }

  .dbm-shell-page .dbm-shell-links {
    gap: 8px 12px;
  }

  .dbm-shell-page .dbm-shell-links a {
    font-size: 12px;
  }

  .dbm-shell-page .dbm-shell-footer-grid {
    grid-template-columns: 1fr;
  }

  .dbm-shell-page .dbm-shell-footer-grid > nav {
    padding-left: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dbm-shell-page .dbm-shell-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
