/* Original network colors sit within Wallion's quiet white and blue surfaces. */
.asset-logo {
  display: block;
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  object-fit: contain;
  flex: none;
  border-radius: 50%;
}
/* The official Monero PNG includes extra transparent space around its symbol. */
.asset-monero {
  scale: 1.16;
}
.network-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding-block: 76px;
  border-top: 1px solid var(--line);
}
.network-strip h2 {
  margin: 20px 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.05em;
  font-weight: 600;
  line-height: 1.18;
}
.network-strip-copy > p:not(.opening-kicker) {
  max-width: 390px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 24px;
}
.network-favorites {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.network-favorites a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 22px 5px 16px;
  border-radius: 16px;
  text-align: center;
  height: 100%;
  transition: background 0.25s;
}
.network-favorites .asset-logo {
  width: 46px;
  height: 46px;
  margin-bottom: 13px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.network-favorites a > span {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}
.network-favorites small {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}
.network-favorites a:is(:hover, :focus-visible) {
  background: #edf1fd;
}
.network-favorites a:is(:hover, :focus-visible) .asset-logo {
  transform: translateY(-4px) scale(1.06);
}
.network-favorites a:focus-visible {
  outline: 2px solid #1b3889;
  outline-offset: 2px;
}
.network-directory {
  padding-block: 80px 100px;
}
.network-directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 46px;
}
.network-directory h1 {
  font-size: clamp(2.5rem, 5.1vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin: 19px 0 0;
}
.network-directory-heading > p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 3px;
  color: var(--muted);
}
.network-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 28px;
}
.network-guide-links a {
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #b8c9fc;
  transition: text-decoration-color 0.2s;
}
.network-guide-links a:is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
}
.network-guide-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}
.network-toolbar {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.network-search {
  display: flex;
  width: min(100%, 440px);
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 16px;
  min-height: 54px;
  border: 1px solid #d3dbf0;
  border-radius: 12px;
  background: #f7f9fe;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.network-search:focus-within {
  border-color: #2145a8;
  box-shadow: 0 0 0 3px #c4d2f880;
}
.network-search > .motion-icon {
  color: #606b88;
  width: 24px;
  height: 24px;
  flex: none;
}
.network-search input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  appearance: none;
}
.network-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.network-search input::placeholder {
  color: #65708f;
}
.network-search button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: #495167;
  background: #e4e9f6;
  padding: 5px;
  flex: none;
  cursor: pointer;
}
.network-search button:is(:hover, :focus-visible) {
  background: #ccd8f9;
}
.network-search button .motion-icon {
  width: 100%;
  height: 100%;
}
.network-result-count {
  color: #58617b;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin: 0;
}
.network-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.network-entry {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 94px;
  padding: 20px 14px;
  border-bottom: 1px solid #e7ebf7;
  scroll-margin-top: 160px;
  transition: background 0.2s;
}
.network-entry:hover,
.network-entry:target {
  background: #f1f4fd;
}
.network-entry .asset-logo {
  width: 38px;
  height: 38px;
  transition: transform 0.25s;
}
.network-entry:hover .asset-logo {
  transform: translateY(-2px);
}
.network-entry > span {
  min-width: 0;
}
.network-entry strong {
  display: block;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.network-entry small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-top: 3px;
}
.network-empty {
  text-align: center;
  padding: 70px 20px;
}
.network-empty > span {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #e9effd;
  border-radius: 50%;
  color: #555f79;
}
.network-empty h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 22px 0 12px;
}
.network-empty p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}
.network-empty .button {
  margin-top: 16px;
}
.network-directory-note {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 50px;
}
.network-directory-note > .motion-icon {
  width: 30px;
  height: 30px;
  color: #555f79;
  flex: none;
}
.network-directory-note p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}
.network-directory-note a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 550;
  margin-left: auto;
}
.network-directory-note a .arrow-icon {
  flex: none;
}
.network-entry[hidden],
.network-empty[hidden],
[data-network-clear][hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .network-strip {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
  }
  .network-results {
    column-gap: 12px;
  }
  .network-entry {
    gap: 11px;
    padding-inline: 10px;
  }
  .network-directory-heading {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 800px) {
  .network-strip {
    grid-template-columns: 1fr;
    padding-block: 50px;
  }
  .network-strip h2 {
    font-size: 2.3rem;
  }
  .network-favorites {
    gap: 14px 5px;
  }
  .network-strip-copy > p:not(.opening-kicker) {
    max-width: 460px;
  }
  .network-directory {
    padding-block: 48px 60px;
  }
  .network-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .network-directory-note {
    align-items: start;
    flex-wrap: wrap;
  }
  .network-directory-note p {
    flex: 1;
  }
  .network-directory-note a {
    margin-left: 48px;
    width: 100%;
  }
}
@media (max-width: 520px) {
  .network-favorites {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .network-favorites a {
    padding: 15px 3px;
  }
  .network-favorites .asset-logo {
    width: 38px;
    height: 38px;
  }
  .network-favorites a > span {
    font-size: 0.875rem;
  }
  .network-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 13px;
  }
  .network-search {
    width: 100%;
  }
  .network-results {
    grid-template-columns: 1fr;
  }
  .network-entry {
    min-height: 83px;
    padding-inline: 12px;
  }
  .network-directory h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .network-directory-heading > p br {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .network-favorites a,
  .network-favorites .asset-logo,
  .network-entry,
  .network-entry .asset-logo,
  .network-search {
    transition: none;
  }
  .network-favorites a:is(:hover, :focus-visible) .asset-logo,
  .network-entry:hover .asset-logo {
    transform: none;
  }
}
