img[src="/favicon.ico"] {
  content: url("/assets/ccvpn-mark.ico");
}

.ccvpn-ledger-link {
  position: absolute;
  z-index: 11;
  top: 12px;
  right: max(100px, calc((100% - 1280px) / 2 + 100px));
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  background: #f9fbfd;
  color: #273645;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.dark .ccvpn-ledger-link {
  border-color: #4a5a68;
  background: #182533;
  color: #eef3f9;
}

.ccvpn-ledger-link:hover {
  border-color: #109d78;
}

.ccvpn-ledger-link:focus-visible {
  outline: 2px solid #109d78;
  outline-offset: 2px;
}

.dark .node-card {
  background-color: rgb(10 16 24 / 86%);
}

.dark .node-card:hover {
  background-color: rgb(10 16 24 / 96%);
}

/* Emerald places both capacity summaries in the first column on mobile. */
#app .grid[class~="md:grid-cols-6"] > .col-start-1 .items-baseline:has(> .truncate) {
  flex-wrap: wrap;
}

#app .grid[class~="md:grid-cols-6"] > .col-start-1 .items-baseline > .truncate {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  #app .grid[class~="md:grid-cols-6"] > .col-start-1 .items-baseline:has(> .truncate) {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 639px) {
  .background-container .background-image {
    background-position: 80% center;
  }

  .dark .background-container .background-overlay {
    background-image: linear-gradient(rgb(9 14 23 / 78%), rgb(9 14 23 / 65%));
  }
}
