* {
  box-sizing: border-box;
}

body {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  background: #0d1117;
  color: #c9d1d9;
  margin: 0;
  padding: 1.5rem;
  line-height: 1.5;
}

a {
  color: #58a6ff;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
}

/* Язык: html[lang] задаётся SSI из $ui_lang (Accept-Language → ru|en) */
html[lang="ru"] .i18n > :lang(en),
html[lang="en"] .i18n > :lang(ru) {
  display: none !important;
}

.copy-hint.i18n > span {
  display: block;
}

.lead {
  color: #8b949e;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.ip {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 600;
  color: #3fb950;
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}

section h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b949e;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid #30363d;
  padding-bottom: 0.35rem;
}

.copy-hint {
  font-size: 0.8rem;
  color: #8b949e;
  margin: 0 0 1rem;
  line-height: 1.5;
}

kbd {
  display: inline-block;
  font-size: 0.72em;
  font-family: inherit;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  border: 1px solid #484f58;
  background: #21262d;
  color: #e6edf3;
}

.curl-item {
  margin-bottom: 1.25rem;
}

.curl-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b949e;
  margin-bottom: 0.3rem;
}

.curl-snippet {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin: 0;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: text;
  user-select: all;
  -webkit-user-select: all;
}

.curl-snippet:focus {
  outline: 2px solid #388bfd;
  outline-offset: 1px;
}

.curl-snippet code {
  font-family: inherit;
  color: #7ee787;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

.curl-out-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e7681;
  margin: 0.4rem 0 0.25rem;
}

.curl-output {
  background: #0d1117;
  border: 1px dashed #30363d;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  margin: 0;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.5;
}

.curl-output code {
  font-family: inherit;
  color: #d2a8ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.note {
  font-size: 0.8rem;
  color: #8b949e;
  margin: 1.25rem 0 0;
}

.note code {
  color: #d2a8ff;
}
