/* Keep scrolling available without displaying browser scrollbars. */
* {
  scrollbar-width: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Replace desktop navigation and the mobile menu with one app link. */
header.header nav,
header.header > button {
  display: none !important;
}

.landing-actions {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.landing-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  background: #232323;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
}

.landing-app-link:hover {
  background: #fff;
  color: #232323;
}

.landing-app-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (min-width: 1024px) {
  .landing-actions {
    top: 1.2rem;
    right: 2rem;
  }
}

.landing-coin {
  display: flex;
  align-items: stretch;
  background: #232323;
  color: #fff;
  font-size: 14px;
}

.landing-coin-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
}

.landing-coin-details summary::-webkit-details-marker { display: none; }
.landing-coin-details summary span { font-size: 12px; }
.landing-copy {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.landing-copy:hover,
.landing-coin-details summary:hover { background: #fff; color: #232323; }
.landing-copy:focus-visible,
.landing-coin-details summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.landing-coin-preview,
.landing-copy-status:not(:empty) {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 30px));
  padding: 14px;
  background: #232323;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.landing-coin-preview code { display: block; overflow-wrap: anywhere; user-select: all; margin-top: 6px; }
.landing-copy-status:not(:empty) { top: calc(100% + 120px); width: auto; max-width: 100%; }
@media (max-width: 600px) {
  .landing-actions { top: 64px; right: 15px; gap: 6px; }
  .landing-app-link { padding: 10px; font-size: 14px; }
  .landing-coin-details summary { padding: 0 8px; gap: 6px; }
}

/* The customized homepage uses the imported anchors only as text containers. */
html:has(head script[src="/landing-content.js"]) a:not([href]) {
  cursor: text;
  pointer-events: none;
}
