/* developers.continued-strike.com (22 Nov 2026). The partner API's docs.
   Colours and font are the website's own (css/tokens.css), so the docs read
   as the same product. Self-contained: nothing here is shared with the main
   site's styles. */

@font-face {
  font-family: "Fraunces Soft";
  src: url("/assets/fonts/FrauncesSoft-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0e13;
  --bg-raised: #11161e;
  --panel: #141a23;
  --panel-alt: #1a212c;
  --line: #232b36;
  --line-soft: #1c232d;
  --text: #f2f5f9;
  --muted: #a3aebf;
  --faint: #838c9b;
  --blue: #4e82ff;
  --blue-hover: #6394ff;
  --blue-soft: rgba(78, 130, 255, 0.14);
  --blue-line: #2f4c8c;
  --strike: #0080ff;
  --good: #3bcb73;
  --good-soft: rgba(59, 203, 115, 0.14);
  --warn: #f5b74e;
  --bad: #e34b57;
  --bad-soft: rgba(227, 75, 87, 0.12);
  --rank-e: #8b93a1;
  --rank-d: #e2853f;
  --rank-c: #7d8aa8;
  --rank-b: #e6bd5c;
  --rank-a: #7fc4ea;
  --rank-star: #ecdfc0;
  --code-bg: #0e1218;
  --font: "Fraunces Soft", "Segoe UI", sans-serif;
  --code: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --radius-panel: 14px;
  --radius-control: 10px;
  --radius-small: 8px;
  --column: 46rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-hover);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8eb1ff;
}

:focus-visible {
  outline: 2px solid var(--blue-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

code,
pre {
  font-family: var(--code);
  font-size: 0.86em;
}

p code,
li code,
td code {
  background: var(--panel-alt);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-control);
  z-index: 50;
}

.skip:focus {
  left: 0.5rem;
}

/* ---- top bar ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.wordmark span {
  color: var(--strike);
}

.brand-sub {
  color: var(--muted);
  font-weight: 500;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line);
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.topbar nav a:hover {
  color: var(--text);
}

/* ---- hero: a real request and its answer --------------------------------- */

.hero {
  max-width: 78rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  font-variation-settings: "opsz" 144;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-main {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(78, 130, 255, 0.45), 0 8px 28px rgba(78, 130, 255, 0.28);
}

.button-main:hover {
  background: var(--blue-hover);
  color: #fff;
}

.button-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button-quiet:hover {
  border-color: var(--blue-line);
  color: var(--text);
}

.demo {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.demo-request {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--code-bg);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.demo-request .cmd {
  color: var(--text);
}

.demo-request .url {
  color: #9fc0ff;
}

.demo-answer {
  padding: 1.5rem 1.5rem 1.6rem;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--good);
  font-family: var(--code);
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}

.demo-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
}

.player-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.1rem;
  align-items: center;
}

.tier {
  grid-row: span 2;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--rank-b);
  background: rgba(230, 189, 92, 0.12);
  border: 1px solid rgba(230, 189, 92, 0.35);
}

.player-name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.player-meta {
  color: var(--muted);
}

.player-figures {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}

.player-figures div {
  display: flex;
  flex-direction: column;
}

.player-figures b {
  font-size: 1.35rem;
  font-weight: 700;
}

.player-figures span {
  color: var(--faint);
  font-size: 0.85rem;
}

.demo-fields {
  margin-top: 1.1rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.demo-fields code {
  color: var(--muted);
}

/* ---- page with side menu --------------------------------------------------- */

.page {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: 3.5rem;
  border-top: 1px solid var(--line-soft);
}

.sidenav {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  padding-top: 2.5rem;
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
}

.sidenav p {
  margin: 1.4rem 0 0.4rem;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 600;
}

.sidenav p:first-child {
  margin-top: 0;
}

.sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidenav a {
  display: block;
  padding: 0.3rem 0.75rem;
  margin-left: -0.75rem;
  border-radius: var(--radius-small);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.97rem;
}

.sidenav a:hover {
  color: var(--text);
  background: var(--panel);
}

.sidenav a[aria-current="true"] {
  color: var(--text);
  background: var(--blue-soft);
}

.menu-toggle {
  display: none;
}

main {
  padding-top: 2.5rem;
  min-width: 0;
}

.section {
  max-width: var(--column);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line-soft);
}

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section h3 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.5rem;
  font-weight: 700;
}

.section p {
  margin: 0 0 1rem;
}

.section .intro {
  color: var(--muted);
  font-size: 1.12rem;
}

/* ---- the three steps (a real sequence, so they are numbered) --------------- */

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.4rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue-hover);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--line);
}

.steps > li:last-child::after {
  display: none;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

/* ---- tables ------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th {
  color: var(--faint);
  font-weight: 600;
  background: var(--bg-raised);
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  white-space: nowrap;
}

/* ---- endpoints ----------------------------------------------------------- */

.endpoint {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px dashed var(--line);
}

.endpoint:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.address {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0.6rem 0.8rem;
  margin: 0.9rem 0 1.1rem;
  font-family: var(--code);
  font-size: 0.92rem;
  word-break: break-all;
}

.method {
  background: var(--good-soft);
  color: var(--good);
  border-radius: 6px;
  padding: 0.05rem 0.45rem;
  font-weight: 700;
}

.address .param {
  color: var(--warn);
}

.label {
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

/* ---- code blocks with language tabs ---------------------------------------- */

.code {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--code-bg);
  margin: 0.5rem 0 1.25rem;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.code-bar [role="tab"] {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-small);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.code-bar [role="tab"][aria-selected="true"] {
  color: var(--text);
  background: var(--panel-alt);
}

.code-bar .code-title {
  font-size: 0.88rem;
  color: var(--faint);
  padding: 0.3rem 0.5rem;
}

.copy {
  margin-left: auto;
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

.copy:hover {
  color: var(--text);
  border-color: var(--blue-line);
}

.copy.done {
  color: var(--good);
  border-color: rgba(59, 203, 115, 0.4);
}

.code pre {
  margin: 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  line-height: 1.6;
  color: #d5dbe5;
  max-height: 34rem;
}

.code pre[hidden] {
  display: none;
}

.j-key {
  color: #9fc0ff;
}

.j-str {
  color: #a6e3b8;
}

.j-num {
  color: #f3c97a;
}

.j-lit {
  color: #e9a0ff;
}

details.answer > summary {
  cursor: pointer;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  list-style: none;
}

details.answer > summary::-webkit-details-marker {
  display: none;
}

details.answer > summary::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.15s;
  vertical-align: 0.12em;
}

details.answer[open] > summary::before {
  transform: rotate(45deg);
}

.notes {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.notes li {
  margin-bottom: 0.35rem;
}

.callout {
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
}

.callout.warn {
  border-left-color: var(--warn);
  background: rgba(245, 183, 78, 0.1);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---- rank chips ------------------------------------------------------------ */

.chip {
  display: inline-block;
  min-width: 3.2rem;
  text-align: center;
  font-weight: 800;
  border-radius: 7px;
  padding: 0.05rem 0.5rem;
  border: 1px solid currentColor;
}

.chip-star { color: var(--rank-star); }
.chip-a { color: var(--rank-a); }
.chip-b { color: var(--rank-b); }
.chip-c { color: var(--rank-c); }
.chip-d { color: var(--rank-d); }
.chip-e { color: var(--rank-e); }

/* ---- try it ----------------------------------------------------------------- */

.tryit {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 650;
}

.field small {
  color: var(--faint);
}

.field input,
.field select {
  font: inherit;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0.6rem 0.8rem;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tryit-url {
  font-family: var(--code);
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
  margin: 0 0 1rem;
}

.tryit-result {
  margin-top: 1.25rem;
}

.tryit-status {
  font-family: var(--code);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.tryit-status.ok {
  color: var(--good);
}

.tryit-status.fail {
  color: var(--bad);
}

/* ---- footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.footer a {
  color: var(--muted);
}

/* ---- smaller screens ------------------------------------------------------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
  }

  .page {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidenav {
    position: static;
    max-height: none;
    padding-top: 1.25rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .sidenav .menu-lists {
    display: none;
  }

  .sidenav.open .menu-lists {
    display: block;
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .topbar nav {
    display: none;
  }

  .brand-sub {
    display: none;
  }

  .player-figures {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0.9rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 1.65rem;
  }
}
