/* credora.link: the outside world. Same system as the bank's sites, but the accent is the API orchid
   and the shape is the dashed ring the app uses for every external source. */

.world::before {
  background:
    radial-gradient(50% 40% at 78% 22%, color-mix(in srgb, var(--api) 14%, transparent), transparent 70%),
    radial-gradient(40% 35% at 8% 70%, var(--glow-a), transparent 70%);
}
.world-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--api);
}
.world-mark:hover {
  text-decoration: none;
}
.world-eyebrow {
  color: var(--api);
}
.world-stage {
  gap: 36px;
}

/* route: three steps from the bank's Exasol to the mock API */
.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  overflow: hidden;
}
.route-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 20px;
  position: relative;
}
.route-step + .route-step {
  border-left: 1px dashed var(--line-strong);
}
.route-text {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}
.route-text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.route-text code {
  font-size: 0.92em;
  color: var(--ink);
}
.route-shape {
  margin-top: 4px;
  width: 14px;
  height: 14px;
  justify-self: center;
}
.route-exa {
  /* stock processor icon (Lucide) for Exasol */
  background: var(--exa);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect width="16" height="16" x="4" y="4" rx="2"/%3E%3Crect width="6" height="6" x="9" y="9" rx="1"/%3E%3Cpath d="M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2"/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect width="16" height="16" x="4" y="4" rx="2"/%3E%3Crect width="6" height="6" x="9" y="9" rx="1"/%3E%3Cpath d="M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2"/%3E%3C/svg%3E") center / contain no-repeat;
}
.route-net {
  height: 0;
  width: 18px;
  margin-top: 11px;
  border-top: 2px dashed var(--api);
}
.route-api {
  border: 2px dashed var(--api);
  border-radius: 50%;
}

/* the three parties */
.parties {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.party {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--hi-inset);
  transition: border-color 180ms ease;
}
.party:hover {
  border-color: color-mix(in srgb, var(--api) 45%, var(--line));
}
.party-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.party-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--api);
  background: var(--api-tint);
}
.party-icon svg {
  width: 21px;
  height: 21px;
}
.api-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border: 1px dashed var(--api);
  border-radius: 5px;
  font-size: 12px;
  color: var(--api);
  background: var(--api-tint);
  white-space: nowrap;
}
.api-tag-k {
  font-weight: 600;
  padding: 0 7px;
  border-right: 1px solid color-mix(in srgb, var(--api) 40%, transparent);
}
.api-tag-v {
  padding: 0 7px;
}
.party-title {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.party-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.party-endpoints {
  list-style: none;
  margin: 4px 0 0;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  border-radius: var(--r-md);
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
}
.party-endpoints li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  overflow-wrap: anywhere;
}
.party-endpoints span {
  color: var(--code-kw);
  font-weight: 500;
}
.party-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.party-host {
  font-size: 12.5px;
  color: var(--ink);
}
.party-links {
  display: inline-flex;
  gap: 6px;
}
.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 13px;
}
.btn-sm svg {
  width: 13px;
  height: 13px;
}
.btn-api {
  color: var(--api);
  border-color: color-mix(in srgb, var(--api) 50%, transparent);
  background: var(--api-tint);
}
.btn-api:hover {
  border-color: var(--api);
}

/* facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.fact {
  padding: 2px 0 0 16px;
  border-left: 2px solid var(--line-strong);
  font-size: 14px;
  color: var(--muted);
}
.fact:first-child {
  border-left-color: var(--refer);
}
.fact:nth-child(2) {
  border-left-color: var(--api);
}
.fact:last-child {
  border-left-color: var(--bank);
}
.fact p {
  margin: 6px 0 0;
}
.fact p + p {
  margin-top: 14px;
}
.fact code {
  font-size: 0.9em;
  color: var(--ink);
}
.fact-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 980px) {
  .route,
  .parties,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .route-step + .route-step {
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
  }
}
