@font-face{font-family:'Noto Color Emoji';src:url('/fonts/NotoColorEmoji.v2.woff2') format('woff2');font-display:swap;}
/* ============================================================
   developers.247ch.at — docs.css
   Brand tokens borrowed from site/static/css/landing.css.
   ============================================================ */

:root {
  --brand:        #4338ca;
  --brand-dark:   #312e81;
  --brand-soft:   rgba(67, 56, 202, 0.08);
  --ink:          #1a1633;
  --ink-soft:     #5b5670;
  --bg:           #ffffff;
  --bg-soft:      #f7f6fb;
  --line:         rgba(26, 22, 51, 0.08);
  --radius:       14px;
  --radius-sm:    8px;
  --shadow-card:  0 8px 24px rgba(26, 22, 51, 0.06);
  --code-bg:      #2d2d2d;            /* matches prism-tomorrow */
  --font-sans:    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h:     64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-sans),"Noto Color Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== header ===== */
.dev-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  background: var(--brand); color: #fff; font-weight: 800;
  padding: 4px 8px; border-radius: 6px; font-size: 15px; letter-spacing: -0.02em;
}
.brand-name { font-size: 16px; }

.header-search { position: relative; flex: 1; max-width: 520px; }
.header-search input {
  width: 100%; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); font-size: 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.header-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: #fff;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); max-height: 60vh; overflow-y: auto; padding: 6px;
}
.search-results .sr-item {
  display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink);
}
.search-results .sr-item:hover, .search-results .sr-item.active {
  background: var(--brand-soft); text-decoration: none;
}
.search-results .sr-title { font-weight: 600; font-size: 14px; }
.search-results .sr-crumb { font-size: 12px; color: var(--ink-soft); }
.search-results .sr-snippet { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.search-results mark { background: #fff3b0; padding: 0 1px; border-radius: 2px; }
.search-results .sr-empty { padding: 14px; color: var(--ink-soft); font-size: 14px; text-align: center; }

.header-links { display: flex; align-items: center; gap: 18px; }
.header-links a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.header-links a:hover { color: var(--ink); text-decoration: none; }
.btn-key {
  background: var(--brand); color: #fff !important; padding: 8px 16px;
  border-radius: var(--radius-sm); font-weight: 600;
}
.btn-key:hover { background: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ===== layout ===== */
.layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  max-width: 1240px; margin: 0 auto;
}
.sidebar {
  position: sticky; top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 28px 20px 60px;
  border-right: 1px solid var(--line);
}
.toc-group { margin-bottom: 22px; }
.toc-title {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px 10px;
}
.toc a {
  display: block; padding: 6px 10px; border-radius: 6px;
  color: var(--ink-soft); font-size: 14px; font-weight: 500;
}
.toc a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.toc a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ===== content ===== */
.content { padding: 36px 48px 80px; min-width: 0; }
.doc-section { padding-top: 8px; margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-section + .doc-section { border-top: 1px solid var(--line); padding-top: 40px; }

.content h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.content h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; color: var(--ink-soft); }
.content p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 20px !important; }
.note { font-size: 14px; color: var(--ink-soft); }

.bullets, .steps { margin: 0 0 16px; padding-left: 22px; }
.bullets li, .steps li { margin: 6px 0; }

/* inline code */
code.inline, .params code, .toc code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 2px 6px; border-radius: 5px;
}

/* HTTP method badges */
.method {
  display: inline-block; font-family: var(--font-mono); font-size: 0.5em;
  font-weight: 700; vertical-align: middle; padding: 4px 9px; border-radius: 6px;
  margin-right: 10px; color: #fff; letter-spacing: 0.04em;
}
.method.get   { background: #2563eb; }
.method.post  { background: #16a34a; }
.method.patch { background: #d97706; }
.method.delete { background: #dc2626; }

/* callouts */
.callout {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0;
  font-size: 14.5px;
}
.callout.warn { border-left-color: #d97706; background: #fff8ef; }
.callout code.inline { background: rgba(0,0,0,0.05); color: var(--ink); }

/* params tables */
.params { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 14px; }
.params th, .params td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.params th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.params tr:last-child td { border-bottom: none; }

/* ===== code blocks & tabs ===== */
pre { margin: 0 0 18px; border-radius: var(--radius-sm); overflow: auto; }
pre[class*="language-"] { padding: 16px 18px; font-size: 13.5px; line-height: 1.6; }
:not(pre) > code[class*="language-"] { padding: 2px 6px; }

.code-tabs {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; margin: 8px 0 20px; background: var(--code-bg);
}
.tab-bar { display: flex; gap: 2px; background: #1f1f1f; padding: 4px 6px 0; }
.tab {
  background: transparent; border: none; cursor: pointer;
  color: #b8b8b8; font-size: 13px; font-weight: 600; font-family: var(--font-mono);
  padding: 8px 14px; border-radius: 7px 7px 0 0;
}
.tab:hover { color: #fff; }
.tab.active { background: var(--code-bg); color: #fff; }
.code-tabs .tab-panel { display: none; }
.code-tabs .tab-panel.active { display: block; }
.code-tabs pre { margin: 0; border-radius: 0; }

/* ===== footer ===== */
.dev-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px 48px; text-align: center; }
.footer-contact { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.footer-contact a { color: var(--brand); }
.footer-contact .dot { color: var(--ink-soft); margin: 0 8px; }
.footer-links { margin-bottom: 8px; }
.footer-links a { color: var(--ink-soft); font-size: 14px; margin: 0 10px; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--ink-soft); opacity: 0.75; }

/* ===== responsive ===== */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; width: 260px;
    background: #fff; z-index: 40; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--shadow-card);
    height: calc(100vh - var(--header-h));
  }
  .sidebar.open { transform: translateX(0); }
  .nav-toggle { display: inline-block; }
  .content { padding: 28px 22px 64px; }
  .header-links a:not(.btn-key) { display: none; }
}
@media (max-width: 620px) {
  .dev-header { gap: 12px; padding: 0 14px; }
  .brand-name { display: none; }
  .content h1 { font-size: 27px; }
  .footer-inner { padding: 24px 18px; }
}
