@import url("./coin-graph.css");
#explorer.coin-explorer {
  position: relative;
  z-index: 1;
  --cx-ink: #16283e;
  --cx-sub: #405169;
  --cx-rule: #a1abb6;
  --cx-blue: #194c9e;
  background: transparent;
  color: var(--cx-ink);
  color-scheme: light;
  font:
    400 15px/1.5 Inter,
    Arial,
    sans-serif;
  scroll-margin-top: 12px;
}
.coin-explorer .cx-wrap {
  width: min(1400px, 90%);
  margin: auto;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.coin-explorer .cx-head {
  position: relative;
  isolation: isolate;
  min-height: clamp(70px, 5.9vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#explorer.coin-explorer {
  overflow: clip;
}

.coin-explorer h2 {
  margin: 0;
  font-size: clamp(37px, 3.7vw, 59px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.coin-explorer label.cx-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: min(330px, 40%);
  padding: 0 13px;
  border: 1px solid #97a4b3;
  border-radius: 4px;
  background: #fff;
}
.coin-explorer .cx-search svg {
  flex: none;
  color: var(--cx-sub);
}
.coin-explorer .cx-search input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cx-ink);
  font:
    400 14px/1.4 Inter,
    sans-serif;
}
.coin-explorer .cx-search:focus-within {
  outline: 2px solid var(--cx-blue);
  outline-offset: 2px;
}
.coin-explorer .cx-search input::placeholder {
  color: var(--cx-sub);
}
.coin-explorer .cx-toolbar,
.coin-explorer .cx-secondary,
.coin-explorer .cx-cardfoot,
.coin-explorer .cx-cardtitle,
.coin-explorer .cx-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.coin-explorer .cx-toolbar {
  padding: 7px 0;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--cx-rule);
}
.coin-explorer .cx-filters,
.coin-explorer .cx-subfilters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.coin-explorer :is(.cx-filters, .cx-subfilters) button,
.coin-explorer .cx-compare-trigger,
.coin-explorer .cx-example-link {
  background: transparent;
  color: var(--cx-ink);
  font:
    500 13px/1.3 Inter,
    sans-serif;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.coin-explorer .cx-filters button[aria-pressed="true"] {
  color: #fff;
  background: #1f3856;
  border-color: #1f3856;
}
.coin-explorer :is(.cx-filters, .cx-subfilters) button:hover {
  border-color: var(--cx-rule);
  filter: none;
}
.coin-explorer .cx-compare-trigger,
.coin-explorer .cx-example-link {
  border-color: #7d8fa1;
  background: #f5f7f9;
}
.coin-explorer .cx-compare-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.coin-explorer .cx-compare-trigger span {
  font: 11px var(--mono, monospace);
  color: var(--cx-blue);
}
.coin-explorer .cx-secondary {
  margin: 19px 0 0;
  border-top: 1px solid var(--cx-rule);
  padding-top: 10px;
  color: var(--cx-sub);
  line-height: 1.45;
}
.coin-explorer .cx-secondary p {
  font-size: 13px;
  margin: 0;
}
.coin-explorer #result-count {
  flex: none;
  font: 11px/1.4 var(--mono, monospace);
}
.coin-explorer .cx-subfilters {
  margin: 0 0 14px;
}
.coin-explorer .cx-subfilters button {
  padding: 5px 10px;
  font-size: 12px;
}
.coin-explorer .cx-subfilters button[aria-pressed="true"] {
  border-color: #7891a9;
  background: #f4f6f8;
}
.coin-explorer .cx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px clamp(12px, 1.7vw, 26px);
}
.coin-explorer .cx-grid[data-view="worked"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.coin-explorer .cx-grid[data-view="sources"] {
  display: block;
}
.coin-explorer .cx-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.coin-explorer .cx-portrait,
.coin-explorer .cx-localart {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.55;
}
.coin-explorer .cx-portrait {
  display: grid;
  place-items: center;
  background-color: var(--swatch, #b2c0cc);
  background-image: var(--composition, none);
}
.coin-explorer .cx-portrait img {
  width: 53%;
  height: auto;
  max-height: 94%;
  aspect-ratio: 1;
  object-fit: contain;
  transform: rotate(var(--tilt, 0deg));
  border-radius: var(--cut, 0);
  border: var(--frame, 0);
}
.coin-explorer .cx-local-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.coin-explorer .cx-localart > span {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #18314e;
  color: #fff;
  font: 10px/1.5 var(--mono, monospace);
  padding: 3px 7px;
}
.coin-explorer .cx-caption {
  padding: 5px 0 5px;
  flex: 1;
}
.coin-explorer .cx-cardtitle {
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.coin-explorer .cx-cardtitle h3,
.coin-explorer .cx-source h3 {
  color: var(--cx-ink);
  min-width: 0;
  margin: 0;
  font:
    500 clamp(22px, 1.9vw, 32px) / 1.08 Inter,
    sans-serif;
  letter-spacing: -0.057em;
  overflow-wrap: anywhere;
}
.coin-explorer a {
  color: var(--cx-ink);
  text-underline-offset: 3px;
}
.coin-explorer h3 a {
  color: inherit;
  text-decoration: none;
}
.coin-explorer h3 a:hover {
  text-decoration: underline;
  color: var(--cx-blue);
}
.coin-explorer .cx-ticker {
  color: var(--cx-sub);
  font: 11px/1.4 var(--mono, monospace);
}
.coin-explorer .cx-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--cx-sub);
  font: 11px/1.4 var(--mono, monospace);
}
.coin-explorer .cx-caption > .cx-address {
  margin-top: 5px;
}
.coin-explorer .cx-address code {
  min-width: 0;
  color: var(--cx-ink);
  font: inherit;
  overflow-wrap: anywhere;
}
.coin-explorer button.cx-copy {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0;
  background: transparent;
  color: var(--cx-sub);
}
.coin-explorer .cx-copy svg {
  width: 13px;
  height: 13px;
}
.coin-explorer .cx-copy:hover {
  border-color: var(--cx-rule);
  color: var(--cx-ink);
}
.coin-explorer .cx-cardfoot {
  border-top: 1px solid var(--cx-rule);
  padding: 6px 0;
  min-height: 35px;
}
.coin-explorer .cx-cardfoot a,
.coin-explorer .cx-select,
.coin-explorer .cx-check,
.coin-explorer .cx-source-actions > a,
.coin-explorer .cx-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 2px 0;
  color: var(--cx-ink);
  font:
    500 12px/1.3 Inter,
    sans-serif;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.coin-explorer .cx-cardfoot svg {
  width: 14px;
  height: 14px;
}
.coin-explorer .cx-select[aria-pressed="true"] {
  color: var(--cx-blue);
}
.coin-explorer
  :is(
    .cx-cardfoot a,
    .cx-select,
    .cx-check,
    .cx-source-actions > a,
    .cx-reset
  ):hover {
  text-decoration: underline;
  color: var(--cx-blue);
  filter: none;
}
.coin-explorer .cx-lineage,
.coin-explorer .cx-fee {
  font-size: 13px;
  color: var(--cx-sub);
  line-height: 1.45;
  margin: 4px 0;
}
.coin-explorer .cx-source {
  display: grid;
  align-items: center;
  grid-template-columns: 76px minmax(0, 1fr) minmax(165px, 0.65fr) auto;
  gap: 15px;
  border-top: 1px solid var(--cx-rule);
  padding: 12px 0;
}
.coin-explorer .cx-source:last-child {
  border-bottom: 1px solid var(--cx-rule);
}
.coin-explorer .cx-source-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.coin-explorer .cx-source-title > span {
  display: block;
  color: var(--cx-sub);
  font: 11px/1.4 var(--mono, monospace);
  margin-bottom: 4px;
}
.coin-explorer .cx-source h3 {
  font-size: 24px;
}
.coin-explorer .cx-source-actions {
  display: flex;
  gap: 17px;
}
.coin-explorer .cx-empty {
  padding: 24px 0;
}
.coin-explorer .cx-empty h3 {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.coin-explorer .cx-reset {
  text-decoration: underline;
}
.coin-explorer #demo-status:not(:empty) {
  margin: 10px 0 0;
  color: var(--cx-sub);
  font-size: 13px;
}
.coin-explorer #demo-status:empty {
  display: none;
}
.coin-explorer .cx-compare {
  margin: 16px 0 22px;
  padding: clamp(15px, 2.4vw, 34px);
  border: 1px solid #9eabb9;
  background: #f0f3f5;
  color: var(--cx-ink);
  scroll-margin-top: 14px;
}
.coin-explorer .cx-compare:focus {
  outline: 0;
}
.coin-explorer .cx-compare-head h3 {
  font:
    400 clamp(29px, 3.4vw, 48px) / 1 Inter,
    sans-serif;
  letter-spacing: -0.055em;
}
.coin-explorer .cx-compare-head button {
  display: grid;
  place-items: center;
  padding: 5px;
  width: 32px;
  height: 32px;
  color: var(--cx-ink);
  background: transparent;
  border: 1px solid var(--cx-rule);
  border-radius: 3px;
}
.coin-explorer .cx-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.coin-explorer label.cx-choice {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--cx-sub);
  font:
    500 12px/1.4 Inter,
    sans-serif;
}
.coin-explorer .cx-choice select {
  width: 100%;
  min-width: 0;
  color: var(--cx-ink);
  background: #fff;
  border: 1px solid #8697a9;
  border-radius: 3px;
  padding: 9px 7px;
  font:
    400 14px/1.4 Inter,
    sans-serif;
}
.coin-explorer .cx-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.coin-explorer .cx-table th,
.coin-explorer .cx-table td {
  font:
    400 13px/1.5 Inter,
    sans-serif;
  color: var(--cx-ink);
  padding: 11px 9px;
  border-block: 1px solid #b3bfca;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.coin-explorer .cx-table th:first-child {
  width: 16%;
  padding-left: 0;
  color: var(--cx-sub);
}
.coin-explorer .cx-table thead th {
  font-weight: 600;
}
.coin-explorer .cx-table p,
.coin-explorer .cx-table ul {
  margin: 4px 0;
}
.coin-explorer .cx-table strong,
.coin-explorer .cx-table b {
  font-weight: 550;
}
.coin-explorer .cx-table ul {
  list-style: none;
  padding: 0;
}
.coin-explorer .cx-table li {
  padding: 1px 0;
}
.coin-explorer .cx-table a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #194c86;
}
.coin-explorer .cx-table svg {
  width: 13px;
  height: 13px;
}
.coin-explorer .cx-table .cx-address {
  color: var(--cx-ink);
}
.coin-explorer .cx-table .cx-address > span {
  display: none;
}
.coin-explorer .cx-table details {
  margin: 5px 0;
}
.coin-explorer .cx-table summary {
  color: var(--cx-blue);
  font-size: 12px;
}
.coin-explorer .cx-example-link {
  margin-top: 15px;
}
.coin-explorer :is(a, button, select, summary):focus-visible {
  outline: 2px solid var(--cx-blue);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .coin-explorer .cx-portrait img {
    transition: transform 0.25s ease-out;
  }
  .coin-explorer .cx-card:focus-within .cx-portrait img {
    transform: rotate(0) scale(1.035);
  }
  @media (hover: hover) {
    .coin-explorer .cx-card:hover .cx-portrait img {
      transform: rotate(0) scale(1.035);
    }
  }
}
@media (max-width: 1050px) {
  .coin-explorer .cx-grid,
  .coin-explorer .cx-grid[data-view="worked"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .coin-explorer .cx-grid,
  .coin-explorer .cx-grid[data-view="worked"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coin-explorer .cx-source {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 5px 10px;
  }
  .coin-explorer .cx-source-art {
    grid-column: 1;
    grid-row: 1/3;
  }
  .coin-explorer .cx-source-title {
    grid-column: 2;
    grid-row: 1;
  }
  .coin-explorer .cx-source > .cx-address {
    grid-column: 2;
    grid-row: 2;
  }
  .coin-explorer .cx-source-actions {
    grid-column: 3;
    grid-row: 1/3;
    flex-direction: column;
    gap: 0;
  }
}
@media (max-width: 600px) {
  .coin-explorer .cx-wrap {
    width: calc(100% - 40px);
  }
  .coin-explorer .cx-head {
    min-height: 62px;
    gap: 9px;
  }
  .coin-explorer .cx-head h2 {
    font-size: clamp(27px, 7.5vw, 38px);
    white-space: nowrap;
  }
  .coin-explorer label.cx-search {
    width: clamp(92px, 35%, 180px);
    gap: 5px;
    padding: 0 7px;
  }
  .coin-explorer .cx-search input {
    padding: 9px 0;
  }
  .coin-explorer .cx-toolbar {
    align-items: start;
    gap: 5px;
    flex-wrap: wrap;
    padding-block: 5px;
    margin-bottom: 7px;
  }
  .coin-explorer .cx-filters {
    gap: 0;
  }
  .coin-explorer .cx-compare-trigger,
  .coin-explorer .cx-filters button {
    padding: 7px;
    font-size: 12px;
  }
  .coin-explorer .cx-compare-trigger {
    margin-left: auto;
    min-height: 29px;
    padding-inline: 7px;
  }
  .coin-explorer .cx-compare-trigger .cx-trigger-label {
    display: none;
  }
  .coin-explorer .cx-secondary {
    align-items: baseline;
    margin: 13px 0 0;
  }
  .coin-explorer .cx-secondary p {
    font-size: 12px;
  }
  .coin-explorer #result-count {
    font-size: 10px;
  }
  .coin-explorer .cx-grid {
    gap: 17px 12px;
  }
  .coin-explorer .cx-portrait,
  .coin-explorer .cx-localart {
    aspect-ratio: 1.2;
  }
  .coin-explorer .cx-portrait img {
    width: 66%;
  }
  .coin-explorer .cx-caption {
    padding: 8px 0 5px;
  }
  .coin-explorer .cx-cardtitle {
    gap: 3px 6px;
  }
  .coin-explorer .cx-cardtitle h3 {
    font-size: clamp(20px, 5.3vw, 26px);
  }
  .coin-explorer .cx-ticker {
    font-size: 10px;
  }
  .coin-explorer .cx-caption .cx-address {
    font-size: 10px;
    gap: 2px;
  }
  .coin-explorer .cx-caption .cx-address > span {
    display: none;
  }
  .coin-explorer .cx-cardfoot {
    gap: 5px;
    align-items: baseline;
    flex-wrap: wrap;
  }
  .coin-explorer .cx-cardfoot a,
  .coin-explorer .cx-select {
    font-size: 11px;
    gap: 3px;
  }
  .coin-explorer .cx-source-title > span {
    font-size: 10px;
  }
  .coin-explorer .cx-source-title h3 {
    font-size: 20px;
  }
  .coin-explorer .cx-source > .cx-address {
    font-size: 10px;
  }
  .coin-explorer .cx-source > .cx-address > span {
    display: none;
  }
  .coin-explorer .cx-table th,
  .coin-explorer .cx-table td {
    font-size: 12px;
    padding: 7px 4px;
  }
  .coin-explorer .cx-table th:first-child {
    width: 19%;
  }
  .coin-explorer .cx-table .cx-address code {
    font-size: 10px;
  }
  .coin-explorer .cx-choices {
    gap: 6px;
    margin: 15px 0;
  }
  .coin-explorer .cx-choice select {
    font-size: 12px;
  }
}

.coin-explorer .cx-card[data-coin] > .cx-cardtitle {
  margin: 0 0 8px;
  min-height: 29px;
}
.coin-explorer .cx-card:has(.cx-caption .cx-cardtitle) {
  align-self: stretch;
}
@media (max-width: 600px) {
  .coin-explorer .cx-card[data-coin] > .cx-cardtitle {
    min-height: 24px;
    margin-bottom: 5px;
  }
  .coin-explorer .cx-portrait {
    aspect-ratio: 1.4;
  }
  .coin-explorer .cx-search input {
    font-size: 12px;
  }
  .coin-explorer .cx-toolbar {
    flex-wrap: nowrap;
  }
}

@media (max-width: 360px) {
  .coin-explorer .cx-head {
    min-height: 53px;
  }
  .coin-explorer .cx-filters {
    flex-wrap: nowrap;
  }
  .coin-explorer .cx-filters button {
    font-size: 11px;
    line-height: 1.3;
    padding: 5px 4px;
    min-height: 28px;
  }
  .coin-explorer .cx-toolbar {
    gap: 4px;
  }
}
