/* version: 0.1.0 | build: 2026-09-17 | update: 2026-09-17 */
/* Platform screens: developers, insights, marketplace, technology. Tokens come from site.css. */

.platform-page {
  padding: 28px 0 64px;
}

/* Developers: docs with a sticky table of contents. */
.docs-layout {
  display: grid;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.docs-body {
  min-width: 0;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: .92rem;
}

.toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 980px) {
  .docs-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }

  .toc {
    position: sticky;
    top: 88px;
  }

  .toc ol {
    flex-direction: column;
    border-left: 2px solid var(--line);
  }

  .toc li a {
    display: block;
    padding: 4px 12px;
    margin-left: -2px;
    border-left: 2px solid transparent;
  }

  .toc li a:hover {
    border-left-color: var(--rank);
  }
}

.doc-section {
  scroll-margin-top: 88px;
  padding: 8px 0 36px;
}

.doc-section + .doc-section {
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.doc-section > * + * {
  margin-top: 14px;
}

.doc-section > p {
  color: var(--ink-2);
  max-width: 70ch;
}

.code-figure {
  margin: 0;
  min-width: 0;
}

.code-figure figcaption {
  font-size: .82rem;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.code-figure pre.code,
.doc-section pre.code {
  white-space: pre;
  max-height: 460px;
}

.verify-steps {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--ink-2);
}

.endpoint {
  white-space: nowrap;
  font-size: .84rem;
}

.method {
  display: inline-block;
  min-width: 3.4em;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  background: var(--petrol-soft);
  color: var(--petrol);
}

.method-post {
  background: var(--rank-soft);
  color: var(--ink);
}

/* Insights. */
.share-bar {
  display: flex;
  width: 96px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sunken);
}

.share-bar .fresh {
  background: var(--fresh);
}

.share-bar .stale {
  background: var(--stale);
  margin-left: auto;
}

.share-text {
  display: block;
  font-size: .8rem;
  color: var(--ink-3);
  margin-top: 4px;
  white-space: nowrap;
}

.chart-card {
  margin: 0;
}

.bar-chart {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.bar-chart .bar-label {
  font: 500 13px var(--body);
  fill: var(--ink-2);
}

.bar-chart .bar-value {
  font: 600 12px var(--mono);
  fill: var(--ink);
}

.bar-chart .bar-track {
  fill: var(--sunken);
}

.bar-chart .bar-fill {
  fill: var(--rank);
}

.chart-card figcaption {
  margin-top: 12px;
  font-size: .86rem;
}

.state-num.fresh {
  color: var(--fresh);
}

.state-num.aging {
  color: var(--aging);
}

.state-num.stale {
  color: var(--stale);
}

.stat .strip {
  margin-top: 10px;
}

.cadence-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 16px;
}

@media (min-width: 720px) {
  .cadence-row {
    grid-template-columns: auto minmax(120px, 1fr) auto auto;
  }
}

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

.report {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lock-badge svg {
  width: 12px;
  height: 12px;
}

/* Marketplace. */
.rank-rule {
  border-left: 4px solid var(--rank);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.rank-rule h2 {
  font-size: 1.2rem;
  margin-top: 8px;
}

.rank-rule p:last-child {
  color: var(--ink-2);
  margin-top: 6px;
  max-width: 72ch;
}

.offer-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-title {
  font-size: 1.02rem;
}

.offer-title a {
  text-decoration: none;
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.offer-price .price {
  font: 700 1.5rem/1 var(--mono);
  letter-spacing: -.02em;
}

.offer .tag-list a {
  text-decoration: none;
}

.offer-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
}

/* Technology node. */
.tech-layout {
  display: grid;
  gap: 28px;
}

@media (min-width: 980px) {
  .tech-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.side-title {
  font-size: 1.05rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.related-list li {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 80px auto;
  gap: 10px;
  align-items: center;
  font-size: .92rem;
}

.tag-list a[aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
}
