:root {
  color-scheme: light;
  --ptek-navy: #10172f;
  --ptek-blue: #1f5f99;
  --ptek-gold: #e9ad2f;
  --ptek-border: #dfe5ec;
  --ptek-muted: #64748b;
  --ptek-bg: #f6f8fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ptek-bg);
  color: #172033;
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--ptek-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.d-none, .mobile-search-show, .api-doc-list-item-text,
.api-doc-list-item-controls-view-more-close { display: none !important; }

.ptek-api-header {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: var(--ptek-navy);
  border-bottom: 3px solid var(--ptek-gold);
  color: white;
}
.ptek-api-header img { width: 38px; height: 38px; margin-right: 12px; }
.ptek-api-header strong { font-size: 17px; }
.ptek-api-header span { margin-left: 10px; color: #aeb9cc; }
.ptek-api-header a { margin-left: auto; color: white; font-weight: 650; }

.layout-container > .alert,
#top-navbar,
.search-form,
footer,
.modal { display: none !important; }
a[href*="blockscout.com/poa/sokol"],
a[href*="blockscout.com/etc/mainnet"] { display: none !important; }
main { padding: 32px 20px 64px !important; }
.container { width: min(1180px, 100%); margin: 0 auto; }
.card {
  margin: 0 0 24px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--ptek-border);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.card-body, .card-header { padding: 24px 28px; }
.card-header { border-bottom: 1px solid var(--ptek-border); }
.card-title { margin: 0; color: #172033; }
h1.card-title { font-size: 30px; }
h2.card-title { font-size: 21px; }
.card-subtitle { margin-top: 8px; color: var(--ptek-muted); }
.api-text-monospace {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.api-text-monospace-background {
  display: inline-block;
  padding: 3px 7px;
  background: #eef4fa;
  border-radius: 5px;
  color: #174d7d;
}

.api-anchors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--ptek-border);
  border-top: 1px solid var(--ptek-border);
}
.api-anchors-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: white;
}
.api-anchors-list-item-title { font-weight: 700; }

.api-doc-list-item { border-top: 1px solid var(--ptek-border); }
.api-doc-list-item:first-of-type { border-top: 0; }
.api-doc-list-item-contents {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 19px 28px;
  cursor: pointer;
}
.api-doc-list-item-contents:hover { background: #f8fafc; }
.api-doc-list-item-description { min-width: 0; flex: 1; }
.api-doc-list-item-title { margin: 0 0 8px; font-size: 15px; font-weight: 650; }
.api-doc-list-item-query { margin: 0; font-size: 12px; }
.api-doc-list-item-controls { min-width: 126px; text-align: right; }
.api-doc-list-item-controls-badges { margin-bottom: 7px; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.badge-success { color: #087443; background: #dff7eb; }
.badge-neutral { color: #475569; background: #edf1f5; }
.api-doc-list-item-controls-view-more { color: var(--ptek-blue); font-size: 12px; font-weight: 650; }

.collapse { display: none; }
.collapse.show { display: block; }
.api-doc-parameters-container {
  padding: 24px 28px;
  background: #fbfcfe;
  border-top: 1px solid var(--ptek-border);
}
.api-doc-parameters-list-item {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 4fr;
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid #e8edf3;
}
.api-doc-parameters-list-item-title,
.api-doc-parameters-list-item-subtitle,
.api-doc-parameters-list-item-description { margin: 0; }
input, select, textarea {
  width: 100%;
  max-width: 640px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: white;
  color: #172033;
}
button, .btn-full-primary {
  padding: 9px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--ptek-blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 700px) {
  .ptek-api-header { padding: 12px 16px; }
  .ptek-api-header span { display: none; }
  main { padding: 20px 12px 48px !important; }
  .card-body, .card-header, .api-doc-list-item-contents,
  .api-doc-parameters-container { padding: 18px; }
  .api-doc-list-item-contents { align-items: flex-start; flex-direction: column; gap: 10px; }
  .api-doc-list-item-controls { min-width: 0; text-align: left; }
  .api-doc-parameters-list-item { grid-template-columns: 1fr; gap: 5px; }
}