/* One Platform page.

   Built from the site's own classes: page-hero, api-console, section,
   section-subtle, section-head, grid-3, plain-card, final-cta. This file
   holds only what those don't cover: the hero's buttons, the console view
   inside api-console, the "where to find it" chips on the part cards, and
   the console-or-API diagram. Colours are the site's tokens. */

.op-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.op-shot { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------ the console in the hero */
.api-console-bar .op-tag {
  margin-left: auto; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.14);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.55);
}
.op-shell { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .op-shell { grid-template-columns: 210px minmax(0, 1fr); } }

/* The menu is the console's own, in its own order. On a phone it would
   push the dashboard off screen, so it goes. */
.op-side {
  display: none; list-style: none; margin: 0; padding: 16px 12px;
  border-right: 1px solid rgb(255 255 255 / 0.08); background: rgb(255 255 255 / 0.02);
}
@media (min-width: 760px) { .op-side { display: block; } }
.op-side li {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: rgb(255 255 255 / 0.62); white-space: nowrap;
}
.op-side li.gap { margin-top: 10px; }
.op-side li .icon { flex-shrink: 0; color: rgb(255 255 255 / 0.4); }
.op-side li.on { background: rgb(128 70 225 / 0.18); color: #fff; font-weight: 600; }
.op-side li.on .icon { color: #b491ee; }

.op-main { padding: 22px 24px 24px; min-width: 0; }
.op-hi { margin: 0; font-size: 17px; font-weight: 600; color: #fff; }
.op-sub { margin: 4px 0 18px; font-size: 13px; color: rgb(255 255 255 / 0.5); }
.op-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.op-tiles > div {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 14px; border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.08); background: rgb(255 255 255 / 0.03);
}
.op-tiles span { font-size: 12px; color: rgb(255 255 255 / 0.5); }
.op-tiles b { font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.op-tiles em { font-style: normal; font-size: 11.5px; color: rgb(255 255 255 / 0.4); }
@media (max-width: 480px) {
  .op-tiles { grid-template-columns: 1fr; }
  .op-tiles > div { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: 10px; }
  .op-tiles b { order: 2; margin-left: auto; font-size: 17px; }
  .op-tiles em { display: none; }
}
.op-k {
  margin: 22px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #b491ee;
}
.op-recent { width: 100%; border-collapse: collapse; font-size: 13px; }
.op-recent th {
  padding: 8px 10px; text-align: left; font-weight: 500; font-size: 12px;
  color: rgb(255 255 255 / 0.45); border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.op-recent td { padding: 10px; color: #e9e2f5; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.op-recent tr:last-child td { border-bottom: none; }
.op-recent th:last-child, .op-recent td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.op-b {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
}
.op-b.aml  { background: rgb(128 70 225 / 0.18);  color: #b491ee; }
.op-b.adm  { background: rgb(245 165 36 / 0.16);  color: #f5c46b; }
.op-b.both { background: rgb(23 178 106 / 0.16);  color: #5fd3a0; }

/* ------------------------------------------------------ the part cards */
.op-parts .plain-card { display: flex; flex-direction: column; }
.op-parts a { color: rgb(var(--brand-violet)); font-weight: 600; }
.op-parts a:hover { text-decoration: underline; }
.op-where {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto !important; padding-top: 16px;
}
.op-where span {
  padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 500;
  background: rgb(var(--bg-subtle)); border: 1px solid rgb(var(--card-border) / 0.08);
  color: rgb(var(--text-secondary));
}

/* --------------------------------------------- console or API, one rulebook
   Two ways in on the left, joined into the four things they share. The
   join is a drawing on a wide screen and a plain arrow on a narrow one. */
.op-flow { display: grid; gap: 0; max-width: 980px; margin: 0 auto; }
@media (min-width: 900px) {
  /* All three columns share the row's height, so the two cards split it
     evenly and the drawing's curves land on their middles. */
  .op-flow { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.15fr); align-items: stretch; }
}
.op-in { display: grid; gap: 16px; grid-auto-rows: 1fr; }
.op-src, .op-same {
  background: rgb(var(--card)); border: 1px solid rgb(var(--card-border) / 0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgb(22 23 39 / 0.04), 0 8px 24px -8px rgb(22 23 39 / 0.1);
}
.op-src { display: flex; gap: 14px; align-items: center; padding: 20px 22px; }
.op-src .icon { flex-shrink: 0; }
.op-src b { font-size: 16px; font-weight: 600; color: rgb(var(--text)); }
.op-src p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: rgb(var(--text-secondary)); }

.op-join { position: relative; display: flex; justify-content: center; color: rgb(var(--brand-violet) / 0.55); }
.op-join path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.op-join .wide { display: none; width: 80px; height: 200px; }
.op-join .narrow { width: 24px; height: 36px; margin: 10px 0; }
@media (min-width: 900px) {
  .op-join .wide { display: block; height: 100%; }
  .op-join .narrow { display: none; }
  .op-join::after {
    content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border-radius: 999px; background: rgb(var(--brand-violet));
    box-shadow: 0 0 0 4px rgb(var(--brand-violet) / 0.15);
  }
}

.op-same { list-style: none; margin: 0; padding: 6px 0; counter-reset: same; }
.op-same li {
  position: relative; display: grid; gap: 2px;
  padding: 14px 22px 14px 58px; border-top: 1px solid rgb(var(--card-border) / 0.08);
}
.op-same li:first-child { border-top: none; }
.op-same li::before {
  counter-increment: same; content: counter(same);
  position: absolute; left: 22px; top: 15px;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #5420ac, #9667e6);
}
.op-same b { font-size: 15px; font-weight: 600; color: rgb(var(--text)); }
.op-same span { font-size: 14px; line-height: 1.5; color: rgb(var(--text-secondary)); }
