/* ====================================================
   slide-captcha.css — page-specific overrides for the
   Slide Captcha documentation tool page.
   Shared components live in tool-page.css. Only the
   documentation layout below is unique to this page.

   REFACTORING STATUS: Components below can migrate to
   fc-* classes from tool-page.css (see mapping below).
   For now: keeping for backward compatibility with HTML.

   Migration path when updating HTML:
   .sc-card → .fc-doc-card
   .sc-code → .fc-code-block
   .sc-copy → .fc-copy-btn
   .sc-table → .fc-doc-table
   .sc-list → .fc-doc-list
   .sc-feature(s) → .fc-feature(s)
   .sc-note → .fc-highlight
   .sc-download → .fc-file-box
   ==================================================== */

/* Documentation column: single narrow stack of cards */
.sc-doc {
  max-width: 880px;
}

.sc-card {
  padding: var(--fc-p-7);
  margin-bottom: 20px;
}
.sc-card:last-of-type { margin-bottom: 0; }

.sc-card h2 {
  font-family: var(--font-display);
  font-size: var(--fc-fs-xl);
  font-weight: 600;
  color: var(--ink-950);
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}

.sc-card h3 {
  font-family: var(--font-display);
  font-size: var(--fc-fs-lg);
  font-weight: 600;
  color: var(--ink-900);
  margin: 24px 0 10px;
}

.sc-card p {
  font-size: var(--fc-fs-md);
  line-height: 1.65;
  color: var(--ink-700);
  margin: 0 0 14px;
}

.sc-card code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: var(--fc-r-1);
  padding: 1px 6px;
  color: var(--ink-900);
  word-break: break-word;
}

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* Download box */
.sc-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: var(--fc-p-6);
  background: var(--ink-50);
  border: var(--fc-border);
  border-radius: var(--fc-r-4);
  margin: 4px 0 8px;
}
.sc-download-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sc-download-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--lime-100);
  border: 1px solid var(--lime-200);
  border-radius: var(--fc-r-3);
  color: var(--ink-900);
}
.sc-download-info h4 {
  font-family: var(--font-display);
  font-size: var(--fc-fs-md);
  font-weight: 600;
  color: var(--ink-950);
  margin: 0 0 2px;
}
.sc-download-info p {
  font-family: var(--font-mono);
  font-size: var(--fc-fs-xs);
  color: var(--ink-500);
  margin: 0;
}

/* Code blocks */
.sc-code {
  position: relative;
  margin: 0 0 14px;
}
.sc-code pre {
  margin: 0;
  padding: var(--fc-p-6) 48px var(--fc-p-6) var(--fc-p-6);
  background: var(--ink-950);
  border-radius: var(--fc-r-3);
  overflow-x: auto;
}
.sc-code code {
  font-family: var(--font-mono);
  font-size: var(--fc-fs-sm);
  line-height: 1.6;
  color: #e8eaed;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}
.sc-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--ink-400);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.sc-copy:hover { color: var(--white); }
.sc-copy.is-copied { color: var(--lime); border-color: var(--lime); }

/* Reference table */
.sc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: var(--fc-fs-base);
}
.sc-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fc-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  padding: 8px 12px;
  border-bottom: var(--fc-border-strong);
}
.sc-table td {
  padding: 10px 12px;
  border-bottom: 1px dashed var(--ink-200);
  color: var(--ink-700);
  line-height: 1.5;
  vertical-align: top;
}
.sc-table td:first-child {
  font-family: var(--font-mono);
  font-size: var(--fc-fs-sm);
  color: var(--ink-950);
  white-space: nowrap;
}

/* Lists */
.sc-list {
  margin: 4px 0 14px;
  padding-left: 18px;
  list-style: none;
}
.sc-list li {
  position: relative;
  font-size: var(--fc-fs-md);
  line-height: 1.6;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.sc-list li::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime-600);
}

/* Features grid */
.sc-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.sc-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink-50);
  border: var(--fc-border);
  border-radius: var(--fc-r-3);
  font-size: var(--fc-fs-base);
  color: var(--ink-800);
}
.sc-feature svg {
  flex-shrink: 0;
  color: var(--ink-900);
}

/* Note block */
.sc-note {
  margin: 4px 0 0 !important;
  padding: 14px 16px;
  background: var(--lime-100);
  border-left: 3px solid var(--lime-600);
  border-radius: var(--fc-r-2);
  font-size: var(--fc-fs-base) !important;
  color: var(--ink-700);
}

@media (max-width: 560px) {
  .sc-download { flex-direction: column; align-items: flex-start; }
  .sc-download .fc-btn { width: 100%; justify-content: center; }
}
