/* A matched pair shares a single illustrated sheet and one reading order. */
#compare.cx-compare:has(.cc-sheet) {
  --cc-ink: #163858;
  --cc-secondary: #38556d;
  --cc-rule: #aebfcc;
  --cc-gap: clamp(12px, 2.5vw, 40px);
  --cc-plate-height: clamp(188px, 18vw, 257px);
  --cc-pick-height: 66px;
  --cc-sheet-padding: clamp(14px, 2.5vw, 38px);
  padding: var(--cc-sheet-padding);
  color: var(--cc-ink);
  border: 1px solid #a1b4c4;
  border-top: 3px solid #577fa6;
  border-radius: 3px;
  background: linear-gradient(148deg, #f3f7f9 10%, #e7eef3 56%, #e5ecf2);
}
.cc-sheet {
  font-family: Inter, Arial, sans-serif;
}
.cc-heading,
.cc-foot,
.cc-relationship {
  display: flex;
  align-items: center;
}
.cc-heading {
  justify-content: space-between;
  gap: 10px;
}
.cc-heading #cx-compare-title {
  margin: 0;
  color: var(--cc-ink);
  font:
    450 clamp(31px, 3.7vw, 57px)/1.02 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.067em;
}
.cc-heading button[data-cx-close] {
  flex: none;
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  padding: 0;
  color: var(--cc-ink);
  border: 1px solid #9bafc0;
  border-radius: 50%;
  background: transparent;
}
.cc-heading button:hover,
.cc-foot button:hover {
  background: #fff;
}
.cc-sheet .cc-relationship {
  gap: 9px;
  margin: 10px 0 0;
  color: #365875;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.4;
}
.cc-relationship strong {
  font-weight: 600;
}
.cc-bond {
  position: relative;
  width: 30px;
  height: 1px;
  flex: none;
  background: #5d82a4;
}
.cc-bond::before,
.cc-bond::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: -3px;
  border-radius: 50%;
  background: #597da4;
}
.cc-bond::before {
  left: 0;
}
.cc-bond::after {
  right: 0;
  background: #8caac5;
}
.cc-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--cc-gap);
  margin-top: clamp(17px, 2vw, 29px);
}
.cc-pair::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    transparent,
    #b8c9d6 7%,
    #b8c9d6 92%,
    transparent
  );
}
.cc-coin {
  min-width: 0;
  display: grid;
  align-content: start;
  grid-template-rows: var(--cc-pick-height) auto auto auto;
}
@supports (grid-template-rows: subgrid) {
  .cc-coin {
    grid-row: span 4;
    grid-template-rows: subgrid;
  }
}
.cc-picker {
  min-width: 0;
  height: var(--cc-pick-height);
}
#compare .cc-picker label {
  display: grid;
  align-content: start;
  gap: 5px;
  width: 100%;
}
#compare .cc-picker label > span {
  color: var(--cc-secondary);
  font:
    500 12px/1.3 Inter,
    Arial,
    sans-serif;
}
#compare .cc-picker select {
  height: 35px;
  width: 100%;
  min-width: 0;
  padding: 0 9px;
  font:
    450 14px/1.25 Inter,
    Arial,
    sans-serif;
  color: var(--cc-ink);
  text-overflow: ellipsis;
  background-color: #f8fbfc;
  border: 1px solid #9cb1c3;
  border-radius: 3px;
}
.cc-plate {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  height: var(--cc-plate-height);
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid #adbdcb;
  background:
    radial-gradient(ellipse at 63% 21%, #e3edf3, transparent 56%),
    linear-gradient(125deg, #c1d3e1, #a4bed3);
}
.cc-coin:nth-child(2) .cc-plate {
  background:
    radial-gradient(ellipse at 32% 18%, #e7eff3, transparent 60%),
    linear-gradient(135deg, #cdd6dd, #98afc5);
}
.cc-plate::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(
    ellipse at 50% 46%,
    transparent 0 23px,
    #f5fbff82 24px,
    transparent 25px 40px
  );
  opacity: 0.75;
}
.cc-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#456f9b70 0.7px, transparent 0.9px);
  background-size: 5px 5px;
  mask-image: linear-gradient(
    110deg,
    #0007,
    transparent 39%,
    transparent 69%,
    #0007
  );
}
.cc-print {
  min-width: 0;
  min-height: 0;
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.cc-print img {
  display: block;
  max-width: 80%;
  height: 91%;
  min-height: 0;
  object-fit: contain;
}
.cc-token-art .cc-print img {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dce8f0;
  border: 3px solid #eaf4ff;
  box-shadow:
    0 0 0 1px #87a1b9,
    0 5px 12px #385b7a22;
}
.cc-source-art .cc-print img {
  width: auto;
  aspect-ratio: auto;
  border: 3px solid #f3f7fa;
  background: #d8e6ee;
  box-shadow:
    0 0 0 1px #88a1b4,
    0 5px 14px #385b7a2b;
}
.cc-source-art .cc-print img {
  transform: rotate(-3deg);
}
.cc-coin:nth-child(2) .cc-source-art .cc-print img {
  transform: rotate(3deg);
}
.cc-print > span,
.cc-empty {
  color: var(--cc-secondary);
  font-size: 13px;
}
.cc-plate figcaption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  padding: 0 clamp(10px, 1.5vw, 20px) 12px;
  color: #163855;
}
.cc-plate figcaption h4 {
  margin: 0;
  font:
    500 clamp(21px, 2.4vw, 37px)/1.02 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
.cc-symbol {
  font: 500 11px/1.35 var(--mono, monospace);
  color: #375974;
}
.cc-empty-ring {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed #89a8bf;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cc-pair:not([data-lineage="independent"])::after {
  content: "";
  z-index: 2;
  position: absolute;
  left: calc(50% - var(--cc-gap) / 2 - 8px);
  width: calc(var(--cc-gap) + 16px);
  top: calc(var(--cc-pick-height) + var(--cc-plate-height) * 0.43);
  height: 11px;
  background: #4778a1;
  clip-path: polygon(0 43%, 78% 43%, 78% 6%, 100% 50%, 78% 94%, 78% 57%, 0 57%);
}
.cc-pair[data-lineage="reverse"]::after {
  transform: rotate(180deg);
}
.cc-identity,
.cc-fees,
.cc-empty {
  padding: 15px 0;
}
.cc-identity {
  display: grid;
  gap: 13px;
  align-content: start;
}
.cc-sheet h5 {
  color: #365772;
  font:
    600 12px/1.35 Inter,
    Arial,
    sans-serif;
  margin: 0 0 6px;
}
.cc-origin,
.cc-fee-body {
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
  color: var(--cc-ink);
}
.cc-origin > strong,
.cc-fee-body strong,
.cc-fee-body b {
  font-weight: 600;
  color: var(--cc-ink);
}
.cc-origin p,
.cc-fee-body p {
  margin: 2px 0 5px;
}
.cc-sheet a {
  color: #255c93;
  text-decoration: underline;
  text-decoration-color: #90adc5;
  text-underline-offset: 3px;
}
.cc-sheet a:hover {
  text-decoration-color: currentColor;
}
.cc-sheet a svg {
  vertical-align: -2px;
  width: 13px;
  height: 13px;
}
#compare .cc-sheet .cx-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 4px 7px;
  max-width: 100%;
  min-width: 0;
  align-items: start;
  justify-content: start;
}
#compare .cc-sheet .cx-address > span {
  grid-column: 1/-1;
  color: #365772;
  font:
    600 12px/1.35 Inter,
    Arial,
    sans-serif;
}
#compare .cc-sheet .cx-address code {
  max-width: 100%;
  min-width: 0;
  padding: 0;
  color: #223c55;
  line-height: 1.45;
  font-size: 11px;
  overflow-wrap: anywhere;
  white-space: normal;
}
#compare .cc-sheet .cx-copy {
  display: grid;
  place-items: center;
  height: 26px;
  width: 26px;
  padding: 0;
  color: #315c80;
  border: 1px solid #b6c6d2;
  border-radius: 3px;
  background: transparent;
}
.cc-fees {
  border-top: 1px solid #b5c6d1;
  align-self: stretch;
  padding-bottom: 3px;
}
.cc-fee-body ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.cc-fee-body li {
  padding: 2px 0;
}
.cc-fee-body li b {
  display: inline-block;
  min-width: 2.9em;
  color: #234e7d;
}
.cc-fee-body details {
  margin: 6px 0;
}
.cc-fee-body summary {
  color: #26598a;
  cursor: pointer;
}
.cc-fee-body details .cx-address {
  margin-bottom: 8px;
}
.cc-foot {
  margin-top: 13px;
  border-top: 1px solid #b5c6d1;
  padding-top: 11px;
}
.cc-foot button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: #27577f;
  border: 0;
  background: transparent;
  font:
    550 13px/1.4 Inter,
    Arial,
    sans-serif;
}
.cc-sheet :focus-visible {
  outline: 2px solid #225d9b;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  #compare.cx-compare:has(.cc-sheet) {
    --cc-sheet-padding: 12px;
    --cc-gap: 12px;
    --cc-pick-height: 61px;
    --cc-plate-height: clamp(141px, 35vw, 195px);
  }
  .cc-heading #cx-compare-title {
    font-size: 32px;
  }
  .cc-heading button[data-cx-close] {
    width: 32px;
    height: 32px;
  }
  #compare .cc-picker select {
    font-size: 13px;
    padding: 0 3px;
    height: 33px;
  }
  .cc-plate figcaption {
    display: block;
    padding: 0 7px 7px;
  }
  .cc-plate figcaption h4 {
    font-size: clamp(16px, 4.3vw, 24px);
  }
  .cc-symbol {
    font-size: 9px;
  }
  .cc-print {
    padding: 6px 0 2px;
  }
  .cc-print img {
    max-width: 85%;
    height: 87%;
  }
  .cc-source-art .cc-print img,
  .cc-token-art .cc-print img {
    border-width: 2px;
  }
  .cc-origin,
  .cc-fee-body {
    font-size: 12px;
    line-height: 1.4;
  }
  .cc-identity {
    gap: 10px;
  }
  .cc-identity,
  .cc-fees {
    padding-block: 11px;
  }
  #compare .cc-sheet .cx-address {
    grid-template-columns: minmax(0, 1fr) 23px;
    gap: 3px;
  }
  #compare .cc-sheet .cx-copy {
    width: 23px;
    height: 23px;
  }
  #compare .cc-sheet .cx-address code {
    font-size: 10px;
  }
  .cc-pair:not([data-lineage="independent"])::after {
    height: 8px;
  }
  .cc-sheet .cc-relationship {
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
  }
  .cc-bond {
    width: 18px;
    margin-top: 8px;
  }
}
.cc-allocation {
  margin: 4px 0 9px;
}
.cc-allocation .cc-measure {
  height: 5px;
  display: flex;
  overflow: hidden;
  background: #cbd8e2;
  border-radius: 2px;
}
.cc-measure span {
  display: block;
  flex: none;
  min-width: 0;
  background: #7894ae;
}
.cc-measure span + span {
  border-left: 1px solid #eef5f8;
}
.cc-measure [data-role="creator"],
.cc-measure [data-role="remix_creator"] {
  background: #3a698e;
}
.cc-measure [data-role="og_dev"],
.cc-measure [data-role="og_developer"] {
  background: #497baf;
}
.cc-measure [data-role="og_holders"] {
  background: #78a8bb;
}
.cc-measure [data-role="proto_treasury"] {
  background: #9faebd;
}
.cc-allocation p {
  margin: 5px 0 0;
  color: var(--cc-secondary);
  font-size: 12px;
}
.cc-allocation b {
  color: var(--cc-ink);
}
