/* Golos Text copyright and SIL Open Font License: /ui/GolosText-OFL.txt */
/* Brand values follow WowGG ui-kit tokens.scss and GlobalMenu.module.scss. */
@font-face {
  font-family: "Golos Text";
  src: url("/ui/GolosText-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/ui/GolosText-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --canvas: #06080f;
  --surface: #0d0f16;
  --raised: #14161d;
  --hover: #171a21;
  --line: #1e2029;
  --border-strong: #303540;
  --text: #fafbfb;
  --muted: #9fa5b4;
  --subtle: #606477;
  --accent: #8af115;
  --gold: #e5cc80;
  --link: #71b3ff;
  --danger: #ff9696;
  --font: "Golos Text", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: var(--link); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 20;
  padding: 12px;
  background: var(--surface);
}
.skip-link:focus { top: 12px; }
.shell { min-height: 100vh; }
.site-header {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand img { display: block; width: 98px; height: 24px; }
.navigation { display: flex; gap: 28px; align-self: stretch; }
.nav-item {
  position: relative;
  padding: 0 2px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-item:hover, .nav-item.active { color: var(--text); }
.nav-item.active::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--accent);
  border-radius: 2px;
}
.site-tools { display: flex; gap: 24px; align-items: center; margin-left: auto; }
.site-tools a { color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.site-tools a:hover { color: var(--text); }
.main {
  width: min(100% - 48px, 1200px);
  min-width: 0;
  margin: 0 auto;
  padding: 48px 0 28px;
}
.page-heading { margin-bottom: 28px; max-width: 800px; }
h1 {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -.02em;
}
h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.35; }
.page-description { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.toolbar select {
  width: 188px;
  max-width: 100%;
  min-height: 44px;
  padding: 0 36px 0 14px;
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.category-filter select { width: 260px; }
.toolbar select:hover { border-color: var(--border-strong); }
.button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.button:hover:not(:disabled) { background: #1e2029; border-color: #3a4150; }
.quiet { background: var(--surface); }
.message { color: var(--muted); font-size: 14px; }
.message:not(:empty) {
  padding: 14px 18px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.message.error { color: var(--danger); border-color: #573039; background: #21161c; }
.muted { color: var(--muted); font-size: 12px; }
.guide-layout { display: block; }
.guide-library { min-width: 0; }
.section-line { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 18px; }
.section-line h2 { font-size: 18px; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.guide-entry:has(.guide-card:hover) { border-color: var(--border-strong); background: var(--raised); }
.guide-entry:has(.selected) { border-color: #536334; background: #141a13; }
.guide-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 20px 20px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.guide-card-title { font-size: 15px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.guide-card-meta {
  display: inline-block;
  margin-top: auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--line);
  color: var(--muted);
  font-size: 11px;
}
.guide-card-source {
  align-self: flex-start;
  margin: 0 20px 16px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}
.guide-card-source:hover { color: var(--text); text-decoration: underline; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.pagination .button { min-height: 38px; padding: 8px 14px; font-size: 12px; }
.reader { display: none; min-width: 0; }
/* An untouched library uses the whole page. Selecting a guide opens its reader. */
.guide-layout:has(#guide-article:not([hidden])),
.guide-layout:has(#guide-detail-message:not(:empty)) {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
}
.guide-layout:has(#guide-article:not([hidden])) .reader,
.guide-layout:has(#guide-detail-message:not(:empty)) .reader { display: block; }
.guide-layout:has(#guide-article:not([hidden])) .guide-list,
.guide-layout:has(#guide-detail-message:not(:empty)) .guide-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.guide-layout:has(#guide-article:not([hidden])) .guide-entry,
.guide-layout:has(#guide-detail-message:not(:empty)) .guide-entry { min-height: 0; }
.guide-layout:has(#guide-article:not([hidden])) .guide-card,
.guide-layout:has(#guide-detail-message:not(:empty)) .guide-card { padding: 14px 16px 8px; gap: 10px; }
.guide-layout:has(#guide-article:not([hidden])) .guide-card-title,
.guide-layout:has(#guide-detail-message:not(:empty)) .guide-card-title { font-size: 13px; line-height: 20px; }
.guide-layout:has(#guide-article:not([hidden])) .guide-card-source,
.guide-layout:has(#guide-detail-message:not(:empty)) .guide-card-source { margin: 0 16px 12px; }
.reader-placeholder { display: none; }
.article-heading { margin-bottom: 20px; }
.article-heading h2 { margin: 10px 0 12px; font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.article-heading .muted { margin: 0; }
.source-line { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 18px 0 26px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.source-line a { font-weight: 500; }
.copy-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 4px 0; text-align: left; }
.copy-button:hover { color: var(--text); }
.markdown { color: #d4d7e0; font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.markdown > *:first-child { margin-top: 0; }
.markdown h2, .markdown h3, .markdown h4 { margin: 32px 0 14px; color: var(--text); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.markdown h2 { font-size: 25px; }
.markdown h3 { font-size: 21px; }
.markdown h4 { font-size: 17px; }
.markdown p { margin: 0 0 16px; }
.markdown blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--border-strong); color: var(--muted); }
.markdown blockquote p { margin: 0; }
.markdown pre { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); white-space: pre-wrap; font: 12px/1.7 ui-monospace, monospace; }
.markdown code { padding: 2px 5px; border-radius: 4px; background: var(--raised); color: #d4d7e0; font: 12px/1.7 ui-monospace, monospace; }
.markdown pre code { padding: 0; background: transparent; }
.markdown ul, .markdown ol { margin: 20px 0; padding-left: 24px; }
.markdown li { margin-bottom: 8px; }
.markdown li::marker { color: var(--subtle); }
.markdown hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.table-scroll { width: 100%; max-width: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--subtle) transparent; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { color: var(--muted); text-align: left; font-size: 12px; font-weight: 400; }
td, th { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.markdown table { min-width: 420px; font-size: 13px; }
.markdown th { color: #d4d7e0; font-weight: 500; }
.markdown td, .markdown th { padding: 12px 14px; }
.markdown tbody tr:nth-child(odd) { background: var(--surface); }
.data-panel { padding-top: 6px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.result-heading h2 { font-size: 25px; letter-spacing: -.02em; }
.result-heading p { margin: 8px 0 0; }
.data-count { color: var(--muted); font-size: 12px; }
.meta-table { border-collapse: separate; border-spacing: 0 6px; }
.meta-table th { padding-top: 6px; padding-bottom: 6px; border: 0; }
.meta-table td { padding-top: 16px; padding-bottom: 16px; border: 0; background: var(--surface); vertical-align: middle; }
.meta-table td:first-child { border-radius: 10px 0 0 10px; }
.meta-table td:last-child { border-radius: 0 10px 10px 0; }
.meta-table tbody tr:hover td { background: var(--raised); }
.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank { width: 58px; color: var(--subtle); font-size: 13px; font-variant-numeric: tabular-nums; }
.spec-name { font-weight: 500; white-space: nowrap; }
.class-name { margin-top: 3px; color: var(--muted); font-size: 12px; }
.metric { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.token-panel { max-width: 720px; padding: 34px 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.token-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.token-topline .eyebrow { color: var(--gold); }
.region-label { color: var(--muted); font-size: 13px; }
.token-label { margin: 34px 0 12px; color: var(--muted); font-size: 15px; }
.token-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.token-price > span:first-child { color: var(--gold); font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gold-unit { color: var(--gold); font-size: 15px; }
.token-panel .source-line { margin-top: 28px; margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.page-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-footer p { max-width: 760px; margin: 0; }
.page-footer a { white-space: nowrap; color: var(--muted); }
.page-footer strong { color: var(--text); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid var(--border-strong); border-radius: 10px; background: #1e2029; color: var(--text); font-size: 13px; box-shadow: 0 6px 26px #0006; z-index: 10; }
.noscript { margin: 0; padding: 20px; background: #2b2020; }
@media (max-width: 1000px) {
  .site-header { gap: 28px; padding: 0 24px; }
  .navigation { gap: 22px; }
  .site-tools { gap: 16px; }
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout:has(#guide-article:not([hidden])),
  .guide-layout:has(#guide-detail-message:not(:empty)) { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
  .article-heading h2 { font-size: 26px; }
}
@media (max-width: 700px) {
  .site-header { min-height: 112px; display: grid; grid-template-columns: 1fr auto; gap: 0 20px; padding: 0 20px; }
  .brand { height: 58px; }
  .site-tools { grid-column: 2; grid-row: 1; }
  .site-tools a { font-size: 12px; }
  .navigation { grid-column: 1 / -1; grid-row: 2; min-height: 53px; gap: 28px; }
  .nav-item { padding: 0 2px; font-size: 14px; }
  .main { width: calc(100% - 40px); padding-top: 32px; }
  h1 { margin-bottom: 10px; font-size: 30px; line-height: 36px; }
  .page-heading { margin-bottom: 24px; }
  .page-description { font-size: 13px; line-height: 21px; }
  .toolbar { gap: 12px; margin-bottom: 24px; }
  .toolbar label { flex: 1; min-width: 130px; }
  .toolbar select, .category-filter select { width: 100%; min-width: 0; }
  .toolbar .button { flex: 0 0 auto; }
  .guide-list { gap: 10px; }
  .guide-entry { min-height: 172px; }
  .guide-card { padding: 16px 14px 12px; }
  .guide-card-title { font-size: 13px; line-height: 20px; }
  .guide-card-source { margin-left: 14px; margin-right: 14px; font-size: 10px; }
  .guide-layout:has(#guide-article:not([hidden])),
  .guide-layout:has(#guide-detail-message:not(:empty)) { display: flex; flex-direction: column; gap: 30px; }
  .guide-layout:has(#guide-article:not([hidden])) .guide-list,
  .guide-layout:has(#guide-detail-message:not(:empty)) .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader { padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
  .article-heading h2 { font-size: 26px; }
  .source-line { gap: 8px 18px; font-size: 12px; }
  .markdown { font-size: 14px; line-height: 23px; }
  .markdown h2 { font-size: 23px; }
  .markdown h3 { font-size: 20px; }
  .markdown h4 { font-size: 16px; }
  .meta-table { min-width: 430px; }
  .meta-table td { padding: 14px 12px; }
  .result-heading { align-items: flex-start; }
  .result-heading h2 { font-size: 23px; }
  .data-count { white-space: nowrap; }
  .token-panel { padding: 26px 24px; }
  .token-price > span:first-child { font-size: 48px; }
  .page-footer { flex-direction: column; gap: 10px; margin-top: 36px; font-size: 11px; }
}
@media (max-width: 380px) {
  .site-header { padding: 0 16px; }
  .main { width: calc(100% - 32px); }
  .navigation { gap: 24px; }
  .site-tools { gap: 12px; }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .guide-entry { min-height: 0; }
  .guide-layout:has(#guide-article:not([hidden])) .guide-list,
  .guide-layout:has(#guide-detail-message:not(:empty)) .guide-list { grid-template-columns: minmax(0, 1fr); }
  .guide-card-title { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a, select { transition: background-color .15s, color .15s, border-color .15s; }
}

/* API documentation shares the site's content widths, typography and palette. */
.navigation .nav-item { display: flex; align-items: center; text-decoration: none; }
.product-label { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 500; }
.endpoint-context { margin: 0 0 30px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.endpoint-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.http-method { flex: 0 0 auto; color: var(--accent); font: 600 11px/1.5 var(--font); letter-spacing: .04em; }
.endpoint-path, .endpoint-card-route code { color: var(--text); font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; text-decoration: none; }
.endpoint-path:hover { color: var(--accent); }
.endpoint-line .copy-button { margin-left: auto; }
.endpoint-context p { margin: 10px 0 0; max-width: 85ch; font-size: 13px; }
.endpoint-context p.muted { font-size: 12px; }
.reference-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .65fr); column-gap: 48px; row-gap: 8px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.reference-intro h2, .reference-usage h2 { font-size: 20px; }
.reference-intro p, .reference-usage p { margin: 12px 0 0; max-width: 75ch; color: var(--muted); font-size: 14px; }
.reference-intro > .muted { grid-column: 1 / -1; font-size: 12px; }
.freshness-rules { margin: 0; }
.freshness-rules > div { display: flex; gap: 18px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.freshness-rules dt { color: var(--text); }
.freshness-rules dd { margin: 0; color: var(--muted); text-align: right; }
.reference-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin: 28px 0; }
.reference-search { display: grid; gap: 8px; width: min(100%, 420px); color: var(--muted); font-size: 12px; }
.reference-search input { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--text); background: var(--raised); font: 14px var(--font); }
.reference-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reference-links, .endpoint-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.reference-links a { white-space: nowrap; }
.reference-list { display: grid; gap: 16px; }
.endpoint-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.endpoint-card-route { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.endpoint-card h2 { margin: 16px 0 0; font-size: 19px; }
.endpoint-description { margin: 10px 0 0; max-width: 85ch; color: var(--muted); font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.endpoint-parameters { margin: 20px 0 0; }
.endpoint-parameters > div { display: grid; grid-template-columns: minmax(140px, .3fr) minmax(0, 1fr); gap: 22px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
.endpoint-parameters dt { overflow-wrap: anywhere; }
.parameter-location { display: block; color: var(--subtle); font-size: 10px; margin-top: 4px; }
.endpoint-parameters dd { margin: 0; color: var(--muted); }
.endpoint-parameters dd p { margin: 0 0 4px; }
.endpoint-example { margin-top: 20px; }
.endpoint-example pre { margin: 0 0 12px; padding: 14px; background: var(--canvas); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.response-notes { margin: 16px 0 0; color: var(--muted); font-size: 11px; }
.reference-usage { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.reference-usage a { display: inline-block; margin-top: 16px; font-size: 13px; }
@media (max-width: 900px) {
  .site-header { gap: 26px; }
  .navigation { gap: 20px; }
  .site-tools { gap: 16px; }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; gap: 0 20px; padding-top: 18px; }
  .navigation { order: 3; width: 100%; min-height: 54px; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .nav-item { font-size: 13px; min-height: 54px; }
  .site-tools { align-self: center; }
  .reference-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .reference-toolbar { flex-direction: column; align-items: stretch; }
  .reference-search { width: 100%; }
  .reference-links { gap: 24px; }
  .endpoint-context, .endpoint-card { padding: 18px 16px; }
  .endpoint-line { gap: 8px 12px; }
  .endpoint-line .endpoint-path { flex-basis: calc(100% - 45px); }
  .endpoint-line .copy-button { margin-left: 0; }
  .endpoint-parameters > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .parameter-location { display: inline; margin-left: 12px; }
}

.publication-date { margin: -8px 0 18px; }
