/* DogeSoft docs: clean monochrome (no glass, no animated backgrounds) */

/* Explorer canvases: never used on docs; keep off */
.ds-bg-canvas,
#lightDunesCanvas,
#starfieldCanvas {
  display: none !important;
  pointer-events: none;
}

[data-theme='light'] html,
[data-theme='light'] body {
  background-color: #ffffff;
  color: #000000;
}
[data-theme='dark'] html,
[data-theme='dark'] body {
  background-color: #000000;
  color: #ffffff;
}

.md-container,
.md-main {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

body {
  background: #ffffff !important;
  color: #000000;
}
[data-theme='dark'] body {
  background: #000000 !important;
  color: #ffffff;
}

/* Monochrome tokens — override Material `body[data-md-color-scheme]` palette */
html[data-theme='light'] body {
  --md-typeset-color: #000000 !important;
  --md-typeset-a-color: #000000 !important;
  --md-default-fg-color: #000000 !important;
  --md-default-fg-color--light: #000000 !important;
  --md-default-fg-color--lighter: #000000 !important;
  --md-default-fg-color--lightest: #cccccc !important;
  --md-default-bg-color: #ffffff !important;
  --md-code-fg-color: #000000 !important;
  --md-code-bg-color: #f0f0f0 !important;
  --md-code-hl-color: #000000 !important;
  --md-primary-fg-color: #000000 !important;
  --md-accent-fg-color: #000000 !important;
  --md-footer-fg-color: #000000 !important;
  --md-footer-bg-color: #ffffff !important;
}
html[data-theme='dark'] body {
  --md-typeset-color: #ffffff !important;
  --md-typeset-a-color: #ffffff !important;
  --md-default-fg-color: #ffffff !important;
  --md-default-fg-color--light: #ffffff !important;
  --md-default-fg-color--lighter: #ffffff !important;
  --md-default-fg-color--lightest: #444444 !important;
  --md-default-bg-color: #000000 !important;
  --md-code-fg-color: #ffffff !important;
  --md-code-bg-color: #0a0a0a !important;
  --md-code-hl-color: #ffffff !important;
  --md-primary-fg-color: #ffffff !important;
  --md-accent-fg-color: #ffffff !important;
  --md-footer-fg-color: #ffffff !important;
  --md-footer-bg-color: #000000 !important;
}

/* === app-header = bridge/swap .app-header === */
.md-header,
header.md-header.app-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: none;
}
[data-theme='light'] .md-header,
[data-theme='light'] header.md-header.app-header {
  background: #ffffff !important;
  border-bottom: none !important;
  color: #000000;
}
[data-theme='dark'] .md-header,
[data-theme='dark'] header.md-header.app-header {
  background: #000000 !important;
  border-bottom: none !important;
  color: #ffffff;
}

.md-header.md-header--shadow,
.md-header--shadow {
  box-shadow: none !important;
}

/* Same inner row as .header-container */
.md-header__inner,
.md-header__inner.header-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 20px;
}

/* Hide MkDocs palette (we use the ecosystem theme button after Wallet) */
header .md-header__option[data-md-component='palette'] {
  display: none !important;
}

/* Search grows; site title row shows name beside logo: logo | name | search | actions. */
header .md-search {
  flex: 1 1 220px;
  min-width: 0;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* Site name beside logo (only first topic; hide current-page crumb like “Home”) */
header .md-header__title {
  display: flex !important;
  align-items: center;
  flex: 0 1 320px;
  min-width: 0;
  margin: 0 0.5rem 0 0.25rem;
  padding: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000000;
}
header .md-header__title .md-header__ellipsis {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
header .md-header__topic[data-md-component='header-topic'] {
  display: none !important;
}
[data-theme='dark'] header .md-header__title,
[data-theme='dark'] header .md-header__title .md-ellipsis {
  color: #ffffff !important;
}

header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Fixed header — offset main content (same idea as pre-wrap top band) */
body {
  padding-top: var(--ds-docs-header-pad, 0px);
}

@media (min-width: 1px) {
  body {
    --ds-docs-header-pad: 72px;
  }
  @media (max-width: 600px) {
    body {
      --ds-docs-header-pad: 88px;
    }
  }
}

/* —— Mobile (≤900px, Explorer pattern): no top bar; bottom toolbar + slide-up nav —— */
html[data-ds-mobile='1'] body {
  --ds-docs-header-pad: 0;
  padding-top: 0 !important;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
}

/* Match swap mobile lead-in: small gap before title */
html[data-ds-mobile='1'] .md-main__inner {
  margin-top: 16px !important;
}
html[data-ds-mobile='1'] .md-content__inner {
  padding-top: 8px !important;
}

html[data-ds-mobile='1'] header.md-header,
html[data-ds-mobile='1'] header.app-header {
  display: none !important;
}

html[data-ds-mobile='1'] .header-actions[hidden] {
  display: none !important;
}

html[data-ds-mobile='0'] .ds-mobile-bottom-nav,
html[data-ds-mobile='0'] .ds-mobile-drawer,
html[data-ds-mobile='0'] .ds-mobile-drawer-backdrop,
html[data-ds-mobile='0'] .ds-mobile-search-sheet,
html[data-ds-mobile='0'] .ds-mobile-search-backdrop {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

/* Material search when hosted in slide-up sheet */
.ds-mobile-search-host .md-search {
  position: static !important;
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.ds-mobile-search-host .md-search__overlay {
  display: none !important;
}
.ds-mobile-search-host .md-search__inner {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}

.ds-mobile-bottom-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 302;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0)) 12px;
  min-height: 64px;
  box-sizing: border-box;
  border-top: 1px solid;
}
[data-theme='light'] .ds-mobile-bottom-nav {
  background: #ffffff;
  border-top-color: #e0e0e0;
}
[data-theme='dark'] .ds-mobile-bottom-nav {
  background: #000000;
  border-top-color: #333333;
}

.ds-mobile-menu-btn {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
[data-theme='light'] .ds-mobile-menu-btn {
  border: 1px solid #000000;
  background: #ffffff;
}
[data-theme='dark'] .ds-mobile-menu-btn {
  border: 1px solid #333333;
  background: #000000;
}
.ds-mobile-menu-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.ds-mobile-search-btn {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--md-text-font, system-ui, sans-serif);
  line-height: 1.2;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
[data-theme='light'] .ds-mobile-search-btn {
  color: #000000;
  background: #ffffff;
  border: 1px solid #e0e0e0;
}
[data-theme='dark'] .ds-mobile-search-btn {
  color: #ffffff;
  background: #000000;
  border: 1px solid #333333;
}

.ds-mobile-theme-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
[data-theme='light'] .ds-mobile-theme-btn {
  color: #000000;
  background: #ffffff;
  border: 1px solid #e0e0e0;
}
[data-theme='dark'] .ds-mobile-theme-btn {
  color: #ffffff;
  background: #000000;
  border: 1px solid #333333;
}

/* Slide-up nav sheet (Explorer: ~75vh) */
.ds-mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(0, 0, 0, 0.45);
}
.ds-mobile-drawer-backdrop.is-open,
.ds-mobile-drawer-backdrop:not([hidden]).is-open {
  display: block;
}

.ds-mobile-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  max-height: 75vh;
  z-index: 320;
  border-right: none;
  border-top: 1px solid;
  border-radius: 20px 20px 0 0;
  transform: translateY(calc(100% + 24px));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 0;
  overflow: hidden;
}
[data-theme='light'] .ds-mobile-drawer {
  background: #ffffff;
  color: #000000;
  border-top-color: #e0e0e0;
}
[data-theme='dark'] .ds-mobile-drawer {
  background: #000000;
  color: #ffffff;
  border-top-color: #333333;
}
.ds-mobile-drawer.is-open {
  transform: translateY(0);
}

.ds-mobile-drawer-handle {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  margin: 10px auto 4px;
  flex-shrink: 0;
  opacity: 0.85;
}
[data-theme='light'] .ds-mobile-drawer-handle {
  background: #d0d0d0;
}
[data-theme='dark'] .ds-mobile-drawer-handle {
  background: #666666;
}

.ds-mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-bottom: 1px solid;
  flex-shrink: 0;
}
[data-theme='light'] .ds-mobile-drawer-top {
  border-bottom-color: #e0e0e0;
}
[data-theme='dark'] .ds-mobile-drawer-top {
  border-bottom-color: #333333;
}
.ds-mobile-drawer-top-logo {
  border-radius: 12px;
  display: block;
  object-fit: contain;
  border: 1px solid;
  box-sizing: border-box;
}
[data-theme='light'] .ds-mobile-drawer-top-logo {
  border-color: #e0e0e0;
}
[data-theme='dark'] .ds-mobile-drawer-top-logo {
  border-color: #444444;
}

.ds-mobile-drawer-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
[data-theme='light'] .ds-mobile-drawer-close {
  background: #f0f0f0;
  color: #000000;
  border: 1px solid #e0e0e0;
}
[data-theme='dark'] .ds-mobile-drawer-close {
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid #333333;
}

.ds-mobile-drawer-nav {
  display: block;
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 12px calc(12px + env(safe-area-inset-bottom, 0));
}

.ds-mobile-drawer-actions {
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid;
}
[data-theme='light'] .ds-mobile-drawer-actions {
  border-top-color: #e0e0e0;
}
[data-theme='dark'] .ds-mobile-drawer-actions {
  border-top-color: #333333;
}

/* Slide-up search sheet */
.ds-mobile-search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 312;
  background: rgba(0, 0, 0, 0.45);
}
.ds-mobile-search-backdrop.is-open {
  display: block;
}
.ds-mobile-search-sheet {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  max-height: 75vh;
  z-index: 322;
  border-top: 1px solid;
  border-radius: 20px 20px 0 0;
  transform: translateY(calc(100% + 24px));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 0;
  overflow: hidden;
}
[data-theme='light'] .ds-mobile-search-sheet {
  background: #ffffff;
  color: #000000;
  border-top-color: #e0e0e0;
}
[data-theme='dark'] .ds-mobile-search-sheet {
  background: #000000;
  color: #ffffff;
  border-top-color: #333333;
}
.ds-mobile-search-sheet.is-open {
  transform: translateY(0);
}
.ds-mobile-search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-bottom: 1px solid;
  flex-shrink: 0;
}
[data-theme='light'] .ds-mobile-search-top {
  border-bottom-color: #e0e0e0;
}
[data-theme='dark'] .ds-mobile-search-top {
  border-bottom-color: #333333;
}
.ds-mobile-search-title {
  font-weight: 800;
  font-size: 16px;
}
.ds-mobile-search-host {
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0));
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* Expose full navigation tree in the mobile sheet (Material’s sidebar is hidden) */
html[data-ds-mobile='1'] .ds-mobile-drawer .ds-mobile-drawer-list .md-nav,
html[data-ds-mobile='1'] .ds-mobile-drawer .ds-mobile-drawer-list .md-nav__list,
html[data-ds-mobile='1'] .ds-mobile-drawer .ds-mobile-drawer-list .md-nav__item .md-nav {
  display: block;
  max-height: none;
  overflow: visible;
  opacity: 1;
  transform: none;
}

html[data-ds-mobile='1'] .md-sidebar--primary {
  display: none !important;
}

/* Logo: bridge/swap .logo-image */
a.md-header__button.md-logo .logo-image {
  height: 56px;
  width: auto;
  aspect-ratio: 500 / 511;
  object-fit: contain;
  display: block;
}

/* === DogeHeaderPrice.css (from bridge) === */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.header-doge-spot {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
  margin-right: 4px;
  font-family: var(--md-text-font, system-ui, sans-serif);
}

.header-doge-spot--in-actions {
  margin-right: 0;
  margin-left: 0;
  flex-shrink: 0;
}

.header-doge-label {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #000000;
  flex-shrink: 0;
}
[data-theme='dark'] .header-doge-label {
  color: #ffffff;
}

.header-doge-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--f-size-small, 13px);
  color: #000000;
  white-space: nowrap;
}

.header-doge-chg {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-doge-chg.up,
.header-doge-chg.down,
.header-doge-chg.flat {
  color: #000000;
}

[data-theme='dark'] .header-doge-price,
[data-theme='dark'] .header-doge-chg.up,
[data-theme='dark'] .header-doge-chg.down,
[data-theme='dark'] .header-doge-chg.flat {
  color: #ffffff;
}

@media (max-width: 480px) {
  .header-doge-spot {
    gap: 4px 6px;
  }
  .header-doge-label {
    font-size: 10px;
  }
  .header-doge-price {
    font-size: 12px;
  }
  .header-doge-chg {
    display: none;
  }
}

/* === Header: wallet + theme (monochrome) === */
.connect-wallet-button {
  padding: 10px 20px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 535;
  font-family: var(--md-text-font, system-ui, sans-serif);
  cursor: pointer;
  transition: opacity 0.15s ease;
  line-height: 20px;
}

.connect-wallet-button:hover {
  background: #f0f0f0;
  opacity: 0.95;
}
[data-theme='dark'] .connect-wallet-button {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
}
[data-theme='dark'] .connect-wallet-button:hover {
  background: #1a1a1a;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #000000;
  padding: 0;
  line-height: 1;
}

.theme-toggle:hover {
  opacity: 0.7;
}

[data-theme='dark'] .theme-toggle {
  background: transparent;
  color: #ffffff;
}

[data-theme='dark'] .theme-toggle:hover {
  opacity: 0.7;
}

/* No Material “header button” dim on the ecosystem logo (swap has no dim on logo) */
header a.md-header__button.md-logo,
header a.md-header__button.md-logo:hover,
header a.md-header__button.md-logo:focus-visible,
header a.md-header__button.md-logo:active {
  opacity: 1 !important;
  text-decoration: none !important;
  background: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Dark mode: match swap — white header chrome (icons, repo, search) */
[data-theme='dark'] header.md-header,
[data-theme='dark'] .md-header {
  color: #ffffff;
}
[data-theme='dark'] header.md-header .md-header__button,
[data-theme='dark'] header.md-header label.md-header__button {
  color: #ffffff;
  opacity: 1;
}
[data-theme='dark'] header.md-header .md-header__button:hover,
[data-theme='dark'] header.md-header label.md-header__button:hover {
  opacity: 0.85;
}
/* Material keeps icons as SVG paths — drive from currentColor */
[data-theme='dark'] header.md-header .md-icon svg,
[data-theme='dark'] header.md-header .md-icon svg path {
  fill: currentColor !important;
  color: #ffffff;
}
[data-theme='dark'] header .md-source,
[data-theme='dark'] header .md-source__repository,
[data-theme='dark'] header .md-source__fact {
  color: #ffffff !important;
}
[data-theme='dark'] header .md-source__icon svg,
[data-theme='dark'] header .md-source__icon svg path {
  fill: currentColor !important;
}

/* —— Main column layout (solid, no glass) —— */
.md-container {
  max-width: 100%;
  padding: 0 0.75rem 1.5rem;
}
[data-theme='light'] .md-main__inner {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
  margin: 0.75rem auto 1.5rem;
  max-width: 1600px;
  overflow: hidden;
  color: #000000;
}
[data-theme='dark'] .md-main__inner {
  background: #000000 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
  margin: 0.75rem auto 1.5rem;
  max-width: 1600px;
  overflow: hidden;
  color: #ffffff;
}
/* Columns sit on the single surface — no per-panel “island” */
[data-theme='light'] .md-content,
[data-theme='light'] .md-content__inner,
[data-theme='light'] .md-sidebar--primary,
[data-theme='light'] .md-sidebar--secondary,
[data-theme='light'] .md-sidebar__inner,
[data-theme='light'] .md-sidebar__scrollwrap,
[data-theme='light'] .md-content__inner::before,
[data-theme='light'] .md-content__inner::after {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
[data-theme='dark'] .md-content,
[data-theme='dark'] .md-content__inner,
[data-theme='dark'] .md-sidebar--primary,
[data-theme='dark'] .md-sidebar--secondary,
[data-theme='dark'] .md-sidebar__inner,
[data-theme='dark'] .md-sidebar__scrollwrap,
[data-theme='dark'] .md-content__inner::before,
[data-theme='dark'] .md-content__inner::after {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
/* Light column rules */
[data-theme='light'] .md-main__inner > .md-sidebar--primary {
  border-right: none !important;
}
[data-theme='light'] .md-main__inner > .md-sidebar--secondary {
  border-left: none !important;
}
/* Dark column rules */
[data-theme='dark'] .md-main__inner > .md-sidebar--primary {
  border-right: none !important;
}
[data-theme='dark'] .md-main__inner > .md-sidebar--secondary {
  border-left: none !important;
}
[data-theme='dark'] .md-sidebar--primary,
[data-theme='dark'] .md-nav--primary,
[data-theme='dark'] .md-sidebar--secondary,
[data-theme='dark'] .md-ellipsis {
  color: #ffffff;
}
[data-theme='light'] .md-typeset a,
[data-theme='light'] .md-content a,
[data-theme='light'] .md-nav a {
  color: #000000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
[data-theme='light'] .md-typeset a:hover,
[data-theme='light'] .md-content a:hover,
[data-theme='light'] .md-nav a:hover {
  color: #000000;
  opacity: 0.75;
}
[data-theme='dark'] .md-typeset a,
[data-theme='dark'] .md-content a,
[data-theme='dark'] .md-nav a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
[data-theme='dark'] .md-typeset a:hover,
[data-theme='dark'] .md-content a:hover,
[data-theme='dark'] .md-nav a:hover {
  color: #ffffff;
  opacity: 0.8;
}
[data-theme='light'] .md-footer,
[data-theme='light'] .md-footer-meta {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 0;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
[data-theme='dark'] .md-footer,
[data-theme='dark'] .md-footer-meta {
  background: #000000 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Hide “DogeSoft Documentation” text in the left nav title (it now lives in the top header) */
.md-sidebar--primary nav.md-nav--primary > label.md-nav__title[for='__drawer'] {
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.md-sidebar--primary nav.md-nav--primary > label.md-nav__title[for='__drawer'] a.md-logo {
  font-size: 1rem;
  line-height: 1;
  color: inherit;
}
.md-sidebar--primary nav.md-nav--primary > label.md-nav__title[for='__drawer'] a.md-logo svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Search dialog must sit above the ecosystem header (z=99) */
.md-search,
.md-search__overlay,
[data-md-toggle='search']:checked ~ .md-search,
.md-search--active {
  z-index: 200;
}

/* Mobile: we open search via slide-up sheet, not Material checkbox overlay */
html[data-ds-mobile='1'] .md-search__overlay,
html[data-ds-mobile='1'] label[for='__search'].md-header__button {
  display: none !important;
}

/* —— Search: same foreground as body (in header + full-screen) —— */
[data-theme='light'] .md-search__form,
[data-theme='light'] .md-search__input {
  background: #ffffff !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  caret-color: #000000 !important;
  border-color: #e0e0e0 !important;
  box-shadow: none !important;
}
[data-theme='light'] .md-search__input::placeholder {
  color: #000000 !important;
  opacity: 0.6;
}
[data-theme='light'] .md-search__input::-webkit-input-placeholder {
  color: #000000 !important;
  opacity: 0.6;
}
[data-theme='light'] .md-search__icon,
[data-theme='light'] .md-search__icon::after,
[data-theme='light'] .md-search__icon .md-icon,
[data-theme='light'] .md-search__form .md-icon,
[data-theme='light'] .md-search__form .md-icon svg,
[data-theme='light'] .md-search__form .md-icon svg path {
  color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
}
[data-theme='light'] .md-search__output,
[data-theme='light'] .md-search__scrollwrap,
[data-theme='light'] .md-search-result,
[data-theme='light'] .md-search-result__item,
[data-theme='light'] .md-search-result__list,
[data-theme='light'] .md-search-result__meta,
[data-theme='light'] .md-search-result__article,
[data-theme='light'] .md-search__suggest {
  background: #ffffff !important;
  color: #000000 !important;
}
[data-theme='light'] .md-search-result__item a,
[data-theme='light'] .md-search-result__teaser,
[data-theme='light'] .md-search__suggest a {
  color: #000000 !important;
}
[data-theme='light'] .md-search__overlay {
  background: rgba(0, 0, 0, 0.4) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

[data-theme='dark'] .md-search__form,
[data-theme='dark'] .md-search__input {
  background: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  border-color: #333333 !important;
  box-shadow: none !important;
}
[data-theme='dark'] .md-search__input::placeholder {
  color: #ffffff !important;
  opacity: 0.65;
}
[data-theme='dark'] .md-search__input::-webkit-input-placeholder {
  color: #ffffff !important;
  opacity: 0.65;
}
[data-theme='dark'] .md-search__icon,
[data-theme='dark'] .md-search__icon::after,
[data-theme='dark'] .md-search__icon .md-icon,
[data-theme='dark'] .md-search__form .md-icon,
[data-theme='dark'] .md-search__form .md-icon svg,
[data-theme='dark'] .md-search__form .md-icon svg path {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
[data-theme='dark'] .md-search__output,
[data-theme='dark'] .md-search__scrollwrap,
[data-theme='dark'] .md-search-result,
[data-theme='dark'] .md-search-result__item,
[data-theme='dark'] .md-search-result__list,
[data-theme='dark'] .md-search-result__meta,
[data-theme='dark'] .md-search-result__article,
[data-theme='dark'] .md-search__suggest {
  background: #000000 !important;
  color: #ffffff !important;
}
[data-theme='dark'] .md-search-result__item a,
[data-theme='dark'] .md-search-result__teaser,
[data-theme='dark'] .md-search__suggest a {
  color: #ffffff !important;
}
[data-theme='dark'] .md-search__overlay {
  background: rgba(255, 255, 255, 0.1) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
[data-theme='light'] .md-search-result__hit,
[data-theme='light'] .md-search-result__hit--mark,
[data-theme='light'] .md-search-result__hit--active {
  background: #d8d8d8 !important;
  color: #000000 !important;
}
[data-theme='dark'] .md-search-result__hit,
[data-theme='dark'] .md-search-result__hit--mark,
[data-theme='dark'] .md-search-result__hit--active {
  background: #2a2a2a !important;
  color: #ffffff !important;
}

/* Typeset, nav, and code: strict monochrome (hljs spans included) */
[data-theme='light'] .md-typeset h1,
[data-theme='light'] .md-typeset h2,
[data-theme='light'] .md-typeset h3,
[data-theme='light'] .md-typeset h4,
[data-theme='light'] .md-typeset p,
[data-theme='light'] .md-typeset li,
[data-theme='light'] .md-typeset .md-ellipsis,
[data-theme='light'] .md-nav__item--active > .md-nav__link,
[data-theme='light'] .md-nav__link--active,
[data-theme='light'] .md-clipboard {
  color: #000000 !important;
}
[data-theme='dark'] .md-typeset h1,
[data-theme='dark'] .md-typeset h2,
[data-theme='dark'] .md-typeset h3,
[data-theme='dark'] .md-typeset h4,
[data-theme='dark'] .md-typeset p,
[data-theme='dark'] .md-typeset li,
[data-theme='dark'] .md-typeset .md-ellipsis,
[data-theme='dark'] .md-nav__item--active > .md-nav__link,
[data-theme='dark'] .md-nav__link--active,
[data-theme='dark'] .md-clipboard,
[data-theme='dark'] .md-header__source,
[data-theme='dark'] .md-footer a,
[data-theme='dark'] .md-social a {
  color: #ffffff !important;
}
[data-theme='light'] .md-nav--primary .md-nav__link,
[data-theme='light'] .md-nav--secondary .md-nav__link,
[data-theme='light'] .md-header__source,
[data-theme='light'] .md-footer a,
[data-theme='light'] .md-social a {
  color: #000000 !important;
}

[data-theme='light'] .md-footer,
[data-theme='light'] .md-footer * {
  color: #000000 !important;
}
[data-theme='dark'] .md-footer,
[data-theme='dark'] .md-footer * {
  color: #ffffff !important;
}
[data-theme='light'] .md-typeset .highlight * {
  color: #000000 !important;
}
[data-theme='dark'] .md-typeset .highlight * {
  color: #ffffff !important;
}
[data-theme='light'] .md-typeset .admonition,
[data-theme='light'] .md-typeset .admonition-title {
  color: #000000 !important;
}
[data-theme='dark'] .md-typeset .admonition,
[data-theme='dark'] .md-typeset .admonition-title {
  color: #ffffff !important;
}

/* --- Wallet slideout (wallet connect buttons) --- */
.wallet-panel-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 420;
  background: rgba(15, 23, 42, 0.4);
}
[data-theme='light'] .wallet-panel-backdrop {
  background: rgba(15, 23, 42, 0.35);
}
.wallet-panel-backdrop.is-open {
  display: block;
}
.wallet-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 94vw);
  z-index: 430;
  background: var(--md-default-bg-color);
  border-left: 1px solid var(--md-default-fg-color--lightest);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.18);
  min-height: 0;
}
[data-theme='dark'] .wallet-panel {
  box-shadow: -12px 0 56px rgba(0, 0, 0, 0.45);
}
.wallet-panel.is-open {
  transform: translateX(0);
}
.wallet-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  background: linear-gradient(
    165deg,
    rgba(255, 207, 102, 0.18) 0%,
    rgba(255, 153, 66, 0.06) 42%,
    var(--md-default-bg-color) 78%
  );
  flex-shrink: 0;
}
[data-theme='dark'] .wallet-panel-top {
  background: linear-gradient(
    165deg,
    rgba(120, 90, 20, 0.2) 0%,
    rgba(60, 45, 10, 0.08) 45%,
    var(--md-default-bg-color) 78%
  );
}
.wallet-panel-top-text {
  flex: 1;
  min-width: 0;
}
.wallet-panel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--lighter);
}
.wallet-panel-lead {
  margin: 10px 0 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--md-default-fg-color);
  letter-spacing: -0.02em;
}
.wallet-panel-lead-accent {
  color: var(--md-default-fg-color);
  font-weight: 800;
  background: linear-gradient(120deg, #ea580c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wallet-panel-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--md-default-fg-color--lightest);
}

/* === Ecosystem Footer === */
.ecosystem-strip {
  padding: 2rem 1rem;
  background: var(--md-default-bg-color);
  border-top: 1px solid var(--md-default-fg-color--lightest);
  text-align: center;
}

.ecosystem-strip__powered {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  color: var(--md-default-fg-color--lighter);
}

.ecosystem-strip__powered a {
  color: var(--md-default-fg-color);
  text-decoration: none;
  font-weight: 600;
}

.ecosystem-strip__powered a:hover {
  opacity: 0.8;
}

.ecosystem-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ecosystem-strip__ic {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--md-default-fg-color);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s ease;
  min-width: 80px;
}

.ecosystem-strip__ic:hover {
  background: var(--md-default-fg-color--lightest);
  transform: translateY(-2px);
}

.ecosystem-strip__ic--here {
  background: var(--md-accent-fg-color);
  color: var(--md-accent-bg-color);
}

.ecosystem-strip__ic--here:hover {
  background: var(--md-accent-fg-color);
  opacity: 0.9;
}

.ecosystem-strip__img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.ecosystem-strip__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .ecosystem-strip__row {
    gap: 0.5rem;
  }
  
  .ecosystem-strip__ic {
    min-width: 70px;
    padding: 0.75rem 0.5rem;
  }
  
  .ecosystem-strip__img {
    width: 40px;
    height: 40px;
  }
  
  .ecosystem-strip__label {
    font-size: 0.7rem;
  }
}
.wallet-panel-close:hover {
  background: var(--md-default-fg-color--lightest);
}
.wallet-panel-body-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wallet-pick-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wallet-pick-li {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}
.wallet-pick-card {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.wallet-pick-card--action[role='button'] {
  cursor: pointer;
  outline: none;
}
.wallet-pick-card--action[role='button'][aria-disabled='true'] {
  cursor: default;
}
.wallet-pick-card--action[role='button'][aria-disabled='true'] .wallet-pick-title-link {
  cursor: pointer;
}
.wallet-pick-title-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-weight: 400;
  color: var(--md-default-fg-color);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.wallet-pick-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wallet-pick-title-link .wallet-pick-name {
  font-weight: 400;
  letter-spacing: -0.01em;
}
.wallet-pick-external-icon {
  flex-shrink: 0;
  display: block;
  opacity: 0.72;
  color: var(--md-default-fg-color--lighter);
}
.wallet-pick-title-link:hover .wallet-pick-external-icon {
  opacity: 0.95;
  color: var(--md-default-fg-color);
}
.wallet-pick-card-inner {
  border-radius: 16px;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-fg-color--lightest);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wallet-pick-card--mydoge.wallet-pick-card--action:not([aria-disabled='true']) .wallet-pick-card-inner:hover {
  border-color: rgba(242, 216, 138, 0.65);
  box-shadow:
    0 0 0 1px rgba(242, 216, 138, 0.2),
    0 4px 22px rgba(242, 216, 138, 0.16);
}
[data-theme='dark'] .wallet-pick-card--mydoge.wallet-pick-card--action:not([aria-disabled='true']) .wallet-pick-card-inner:hover {
  box-shadow:
    0 0 0 1px rgba(242, 216, 138, 0.18),
    0 4px 26px rgba(242, 216, 138, 0.12);
}
.wallet-pick-card--spooky.wallet-pick-card--action:not([aria-disabled='true']) .wallet-pick-card-inner:hover {
  border-color: rgba(139, 54, 212, 0.58);
  box-shadow:
    0 0 0 1px rgba(139, 54, 212, 0.22),
    0 4px 22px rgba(139, 54, 212, 0.2);
}
[data-theme='dark'] .wallet-pick-card--spooky.wallet-pick-card--action:not([aria-disabled='true']) .wallet-pick-card-inner:hover {
  box-shadow:
    0 0 0 1px rgba(139, 54, 212, 0.2),
    0 4px 26px rgba(139, 54, 212, 0.18);
}
.wallet-pick-card--spooky.wallet-pick-card--action.is-active .wallet-pick-card-inner {
  border-color: #8b36d4;
  box-shadow:
    0 0 0 1px rgba(139, 54, 212, 0.28),
    0 4px 22px rgba(139, 54, 212, 0.18);
}
.wallet-pick-card--mydoge.wallet-pick-card--action.is-active .wallet-pick-card-inner {
  border-color: #f2d88a;
  box-shadow:
    0 0 0 1px rgba(242, 216, 138, 0.55),
    0 4px 22px rgba(242, 216, 138, 0.2);
}
.wallet-pick-card--soon .wallet-pick-card-inner {
  opacity: 0.88;
  filter: grayscale(0.25);
}
[data-theme='dark'] .wallet-pick-card--soon .wallet-pick-card-inner {
  filter: grayscale(0.35);
}
.wallet-pick-card--action[aria-disabled='true'] .wallet-pick-card-inner {
  opacity: 0.5;
}
.wallet-pick-visual {
  display: block;
  background: var(--md-default-bg-color);
  line-height: 0;
}
.wallet-pick-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.wallet-pick-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}
.wallet-pick-name {
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--md-default-fg-color);
}
.wallet-pick-card--soon .wallet-pick-soon {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #da8016;
}
[data-theme='dark'] .wallet-pick-card--soon .wallet-pick-soon {
  color: #ffffff;
  background: #da8016;
  border-color: rgba(0, 0, 0, 0.22);
}
.wallet-pick-connect-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
}
.wallet-pick-connect-cta--mydoge {
  border-color: rgba(242, 216, 138, 0.42);
  background: rgba(242, 216, 138, 0.1);
  --wallet-light: #f2d88a;
  --wallet-light-off-ring: rgba(242, 216, 138, 0.38);
}
[data-theme='dark'] .wallet-pick-connect-cta--mydoge {
  border-color: rgba(242, 216, 138, 0.32);
  background: rgba(242, 216, 138, 0.08);
  --wallet-light-off-ring: rgba(242, 216, 138, 0.45);
}
.wallet-pick-connect-cta--spooky {
  border-color: rgba(139, 54, 212, 0.42);
  background: rgba(139, 54, 212, 0.1);
  --wallet-light: #8b36d4;
  --wallet-light-off-ring: rgba(139, 54, 212, 0.38);
}
[data-theme='dark'] .wallet-pick-connect-cta--spooky {
  border-color: rgba(139, 54, 212, 0.38);
  background: rgba(139, 54, 212, 0.12);
  --wallet-light-off-ring: rgba(139, 54, 212, 0.5);
}
.wallet-pick-connect-lights {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wallet-pick-light {
  flex-shrink: 0;
  border-radius: 50%;
  box-sizing: border-box;
}
.wallet-pick-light--off {
  width: 9px;
  height: 9px;
  border: 2px solid var(--wallet-light-off-ring);
  background: transparent;
  opacity: 0.95;
}
.wallet-pick-light--on {
  width: 10px;
  height: 10px;
  border: none;
  background: var(--wallet-light);
}
.wallet-pick-connect-cta--mydoge .wallet-pick-light--on {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 10px rgba(242, 216, 138, 0.55);
}
.wallet-pick-connect-cta--spooky .wallet-pick-light--on {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 10px rgba(139, 54, 212, 0.48);
}
.wallet-pick-card--mydoge.wallet-pick-card--action:not([aria-disabled='true']):hover .wallet-pick-connect-cta--mydoge {
  border-color: rgba(242, 216, 138, 0.72);
  box-shadow: 0 0 14px rgba(242, 216, 138, 0.12);
}
.wallet-pick-card--spooky.wallet-pick-card--action:not([aria-disabled='true']):hover .wallet-pick-connect-cta--spooky {
  border-color: rgba(139, 54, 212, 0.62);
  box-shadow: 0 0 14px rgba(139, 54, 212, 0.14);
}
.wallet-pick-connect-text.wallet-pick-hint,
.wallet-pick-hint.wallet-pick-connect-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--lighter);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.wallet-pick-card--mydoge.is-connecting .wallet-pick-light--on,
.wallet-pick-card--spooky.is-connecting .wallet-pick-light--on {
  animation: wallet-pick-light-pulse 0.85s ease-in-out infinite;
}
@keyframes wallet-pick-light-pulse {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.65;
    filter: brightness(1.25);
  }
}
.wallet-eco-disclaimer {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--md-default-fg-color--lighter);
  opacity: 0.92;
}
@media (prefers-reduced-motion: reduce) {
  .wallet-panel {
    transition: none;
  }
  .wallet-pick-card-inner {
    transition: none;
  }
  .wallet-pick-card--mydoge.is-connecting .wallet-pick-light--on,
  .wallet-pick-card--spooky.is-connecting .wallet-pick-light--on {
    animation: none;
  }
}
