/* Shared docs CSS — included by every page under /docs.
   Brutalist palette matches the rest of replyo.hu (8px shadow, 1.5px ink borders). */
:root {
  --ink: #0a0a0a;
  --paper: #fafaf7;
  --paper-2: #f0efea;
  --accent: #ff3b1f;
  --accent-text: #c92509;
  --muted: #666;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Menlo', monospace;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
a { color: inherit; }
.docs-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: 13px;
}
.docs-nav a { text-decoration: none; opacity: 0.7; }
.docs-nav a:hover { opacity: 1; }
.docs-nav .brand { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; opacity: 1; }
.docs-nav .brand .dot { color: var(--accent); }
.docs-nav .spacer { flex: 1; }

.docs-shell { display: grid; grid-template-columns: 280px 1fr; gap: 0; min-height: calc(100vh - 51px); }
.docs-side {
  border-right: 1.5px solid var(--ink);
  padding: 28px 22px;
  background: var(--paper-2);
  position: sticky; top: 51px;
  height: calc(100vh - 51px);
  overflow-y: auto;
}
.docs-side h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.55; margin: 18px 0 8px;
}
.docs-side h4:first-of-type { margin-top: 0; }
.docs-side ul { list-style: none; }
.docs-side li { margin-bottom: 2px; }
.docs-side a {
  display: block; padding: 6px 10px; text-decoration: none;
  font-size: 14px; border: 1.5px solid transparent;
}
.docs-side a:hover { background: var(--paper); border-color: var(--ink); }
.docs-side a.active { background: var(--ink); color: var(--paper); }

.docs-main { padding: 48px 56px 80px; max-width: 900px; width: 100%; }
.docs-main h1 {
  font-size: 40px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 8px;
}
.docs-main .lead {
  font-size: 18px; opacity: 0.75; margin-bottom: 28px; line-height: 1.55;
}
.docs-main h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.015em;
  margin: 48px 0 14px; padding-top: 12px; border-top: 1.5px solid var(--ink); padding-top: 28px;
  scroll-margin-top: 70px;
}
.docs-main h3 {
  font-size: 18px; font-weight: 700; margin: 28px 0 10px; scroll-margin-top: 70px;
}
.docs-main p, .docs-main ul, .docs-main ol { margin-bottom: 14px; font-size: 15.5px; line-height: 1.7; }
.docs-main ul, .docs-main ol { padding-left: 22px; }
.docs-main li { margin-bottom: 6px; }
.docs-main a { border-bottom: 1px solid currentColor; text-decoration: none; }
.docs-main code {
  font-family: var(--mono); background: var(--paper-2);
  padding: 2px 7px; font-size: 13.5px; border: 1px solid #d8d4ca;
}
.docs-main pre {
  background: var(--ink); color: #f5f5f5;
  padding: 20px 22px; overflow-x: auto;
  margin: 18px 0;
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.docs-main pre code {
  background: transparent; border: 0; padding: 0; color: inherit; font-size: 13px; line-height: 1.6;
}
.docs-main pre .copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; cursor: pointer;
  transition: background 0.15s ease;
}
.docs-main pre .copy-btn:hover { background: rgba(255,255,255,0.25); }
.docs-main pre .copy-btn.copied { background: var(--accent); border-color: var(--accent); }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--paper-2);
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15px; line-height: 1.6;
}
.callout strong { display: inline-block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.callout.info  { border-color: #0066ff; }
.callout.warn  { border-color: #c08b00; background: #fff7d6; }
.callout.danger{ border-color: var(--accent-text); background: #fbdcd6; }

/* Platform tab strip */
.tab-strip { display: flex; gap: 0; margin: 18px 0 0; border-bottom: 1.5px solid var(--ink); flex-wrap: wrap; }
.tab-strip button {
  background: var(--paper-2); color: var(--ink);
  border: 1.5px solid var(--ink); border-bottom: 0;
  padding: 10px 18px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  margin-right: -1.5px; position: relative; top: 1.5px;
}
.tab-strip button.active { background: var(--ink); color: var(--paper); }
.tab-panel { display: none; padding: 22px 0 0; }
.tab-panel.active { display: block; }

/* Video tutorial slot */
.video-slot {
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  margin: 22px 0;
  background: #000; color: #fff;
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-slot iframe { width: 100%; height: 100%; border: 0; }
.video-slot .placeholder {
  text-align: center; padding: 32px;
}
.video-slot .placeholder .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); margin-bottom: 14px;
}
.video-slot .placeholder .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6;
}
.video-slot .placeholder .title { font-size: 18px; font-weight: 700; margin: 8px 0 4px; }
.video-slot .placeholder .duration { font-family: var(--mono); font-size: 12px; opacity: 0.5; margin-top: 8px; }

/* TOC list on index */
.docs-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 28px 0; }
.docs-toc-item {
  background: var(--paper-2); border: 1.5px solid var(--ink);
  padding: 20px 22px; text-decoration: none; color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.docs-toc-item:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.docs-toc-item h3 { margin: 0 0 6px; font-size: 17px; }
.docs-toc-item p { font-size: 13.5px; opacity: 0.7; line-height: 1.5; margin: 0; }
.docs-toc-item .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; margin-bottom: 8px; display: block; }

/* Search */
.docs-search {
  margin: 18px 0 24px;
  border: 1.5px solid var(--ink);
  padding: 0;
}
.docs-search input {
  width: 100%; padding: 12px 16px;
  border: 0; background: transparent;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink);
}
.docs-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mobile */
@media (max-width: 800px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side { position: static; height: auto; border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .docs-main { padding: 28px 22px 60px; }
  .docs-main h1 { font-size: 32px; }
}
