/* Soryk Docs — design system extension (monochrome, PWA-aligned) */

/* ───── Layout: 2-col docs shell ───── */
.docs-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 1024px) {
  .docs-shell {
    grid-template-columns: 260px 1fr;
    gap: 56px;
    padding: 0 24px;
  }
}

/* ───── Sticky sidebar ───── */
.docs-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .docs-sidebar {
    display: block;
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 24px 0 56px;
    border-right: 1px solid var(--hairline);
    padding-right: 16px;
  }
}
.docs-sidebar h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 22px 0 10px;
}
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  line-height: 1.4;
  margin: 1px 0;
  border-left: 2px solid transparent;
}
.docs-sidebar a:hover {
  color: #111;
  background: #f4f4f5;
}
.docs-sidebar a.active {
  color: #111;
  font-weight: 600;
  background: #f4f4f5;
  border-left-color: #111;
}

/* ───── Mobile sidebar toggle ───── */
.docs-sidebar-mobile {
  display: block;
  margin: 16px 0 0;
}
@media (min-width: 1024px) {
  .docs-sidebar-mobile { display: none; }
}
.docs-sidebar-mobile details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.docs-sidebar-mobile summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.docs-sidebar-mobile summary::-webkit-details-marker { display: none; }
.docs-sidebar-mobile .nav-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--hairline);
}
.docs-sidebar-mobile .nav-body a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
}

/* ───── Content area ───── */
.docs-content {
  padding: 32px 0 96px;
  min-width: 0; /* allow flex/grid items with overflow */
}
.docs-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: #111;
}
.docs-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  scroll-margin-top: 90px;
  color: #111;
}
.docs-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  scroll-margin-top: 90px;
  color: #111;
}
.docs-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: #111;
}
.docs-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 14px;
}
.docs-content ul,
.docs-content ol {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 16px;
  padding-left: 22px;
}
.docs-content ul li,
.docs-content ol li { margin-bottom: 6px; }
.docs-content ul { list-style: disc; }
.docs-content ol { list-style: decimal; }
.docs-content a {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.docs-content a:hover { background: #f4f4f5; }
.docs-content strong { color: #111; font-weight: 700; }
.docs-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f4f4f5;
  padding: 2px 6px;
  border-radius: 4px;
  color: #111;
}
.docs-content pre {
  background: #111111;
  color: #f4f4f5;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 16px 0 22px;
}
.docs-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14px;
}
.docs-content table th,
.docs-content table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.docs-content table th {
  background: #f4f4f5;
  font-weight: 700;
  color: #111;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.docs-content table tr:nth-child(even) td { background: #fafafa; }
.docs-content blockquote {
  border-left: 3px solid #111;
  padding: 6px 0 6px 18px;
  margin: 18px 0;
  color: #374151;
  font-style: italic;
}
.docs-content hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 48px 0;
}

/* ───── Callout boxes ───── */
.callout {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f4f4f5;
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout .callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  background: #111;
  color: #fff;
}
.callout .callout-body { flex: 1; min-width: 0; }
.callout .callout-body p { margin: 0; font-size: 14px; color: #374151; }
.callout .callout-body p + p { margin-top: 6px; }
.callout .callout-body strong { color: #111; }

.callout-tip {
  background: #ecfdf5;
  border-color: #d1fae5;
}
.callout-tip .callout-icon {
  background: #10b981;
}
.callout-warning {
  background: #fef3c7;
  border-color: #fde68a;
}
.callout-warning .callout-icon {
  background: #d97706;
}
.callout-note {
  background: #f4f4f5;
  border-color: #e1e3e5;
}

/* ───── Hub / category cards ───── */
.docs-cat-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .docs-cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .docs-cat-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.docs-cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.docs-cat-card:hover {
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(0,0,0,0.18);
  background: #fff;
}
.docs-cat-card .cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.docs-cat-card .cat-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.docs-cat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #111;
}
.docs-cat-card p {
  font-size: 13.5px;
  color: #6b7280;
  margin: 0;
  line-height: 1.55;
}

/* ───── Breadcrumb + sub-header ───── */
.docs-subheader {
  border-bottom: 1px solid var(--hairline);
  background: #fafafa;
}
.docs-subheader-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .docs-subheader-inner { padding: 14px 24px; }
}
.docs-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.docs-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}
.docs-breadcrumb a:hover { color: #111; }
.docs-breadcrumb span.sep { color: #c7c9cc; }
.docs-breadcrumb .current { color: #111; font-weight: 600; }

.docs-search {
  position: relative;
  width: 100%;
  max-width: 280px;
}
.docs-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  outline: none;
  transition: border-color 160ms ease;
}
.docs-search input:focus { border-color: #111; }
.docs-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

/* ───── In-page TOC (right rail on wide screens) ───── */
.docs-page-toc {
  background: #fafafa;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 32px;
}
.docs-page-toc h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 10px;
}
.docs-page-toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}
.docs-page-toc ol li {
  font-size: 13px;
  margin: 4px 0;
}
.docs-page-toc ol li a {
  color: #374151;
  text-decoration: none;
}
.docs-page-toc ol li a:hover {
  color: #111;
  text-decoration: underline;
}

/* ───── Step list (numbered timeline) ───── */
.step-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  counter-reset: step;
}
.step-list > li {
  position: relative;
  padding: 0 0 28px 56px;
  border-left: 2px solid var(--border);
  margin-left: 18px;
  counter-increment: step;
}
.step-list > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: -19px;
  top: -4px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  border: 4px solid #fff;
}
.step-list > li h3 {
  margin-top: -4px !important;
  margin-bottom: 8px !important;
  font-size: 1.15rem !important;
}
.step-list > li p { margin-bottom: 8px; }

/* ───── Was this helpful footer ───── */
.docs-feedback {
  border-top: 1px solid var(--hairline);
  margin-top: 48px;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.docs-feedback .question {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}
.docs-feedback .actions {
  display: flex;
  gap: 8px;
}
.docs-feedback button {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  transition: all 160ms ease;
}
.docs-feedback button:hover {
  border-color: #111;
  color: #111;
}
.docs-feedback .edit-link {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
}
.docs-feedback .edit-link:hover { color: #111; text-decoration: underline; }

/* ───── Whats-new bar ───── */
.whats-new-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
}
.whats-new-bar .pill {
  flex-shrink: 0;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.whats-new-bar .changes {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
}
.whats-new-bar .changes a {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ───── Settings reference table polish ───── */
.settings-table th:first-child { width: 30%; }
.settings-table td code { font-size: 12px; }

/* ───── FAQ accordion (docs-specific) ───── */
.faq-list { margin: 18px 0; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-list details[open] {
  border-color: #111;
}
.faq-list summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 22px;
  color: #6b7280;
  font-weight: 400;
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list .answer {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #374151;
}
.faq-list .answer p { margin: 0 0 10px; }
.faq-list .answer p:last-child { margin-bottom: 0; }
.faq-list .faq-cat-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 28px 0 8px;
}

/* ───── Screenshot placeholder ───── */
.screenshot-placeholder {
  background: #f4f4f5;
  border: 1px dashed #c7c9cc;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin: 16px 0;
  font-style: italic;
}

/* ───── Pill row (used for prerequisite checklists, etc) ───── */
.req-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 24px !important;
}
.req-list li {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
}
.req-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.req-list li .label {
  font-weight: 600;
  color: #111;
  font-size: 14.5px;
  display: block;
  margin-bottom: 2px;
}
.req-list li .desc {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.5;
}

/* ───── Tag pill (small monochrome label) ───── */
.tag-pill {
  display: inline-block;
  background: #f4f4f5;
  color: #374151;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 6px;
}
.tag-pill.tier-direct { background: #f4f4f5; color: #374151; }
.tag-pill.tier-starter { background: #e1e3e5; color: #111; }
.tag-pill.tier-growth,
.tag-pill.tier-pro,
.tag-pill.tier-scale { background: #111; color: #fff; }

/* ───── Hero (smaller, doc-style) ───── */
.docs-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--hairline);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.docs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 17, 17, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.4), transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.4), transparent 60%);
  pointer-events: none;
}
.docs-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .docs-hero-inner { padding: 0 24px; }
}
.docs-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.docs-hero p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: #374151;
  max-width: 640px;
  margin: 0 0 22px;
}
