/* /developers (Partner API docs) — enqueued on that page only (inc/vidifye.php).
   Markup: blog/theme-src/pages/2256-developers.html. */

.dev-hero { padding-bottom: 56px; }
.dev-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.dev-chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 7px 14px; border-radius: 999px; font-size: 0.88rem; color: #fff;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
}
.dev-chip__label { white-space: nowrap; color: var(--vf-muted-dark); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dev-chip code { background: none; color: #fff; padding: 0; font-size: 0.86rem; overflow-wrap: anywhere; }
.dev-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Two-column docs layout ─────────────────────────────────── */
.dev-docs {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px 80px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start;
}
.dev-toc { position: sticky; top: 96px; }
.dev-toc__title { font: 700 0.75rem var(--vf-font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--vf-muted); margin: 0 0 12px; }
.dev-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--brand-gray-200); }
.dev-toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
  font-weight: 600; font-size: 0.92rem; color: var(--vf-slate); text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.dev-toc a:hover { color: var(--brand-contrast); }
.dev-toc a.is-active { color: var(--brand-primary); border-left-color: var(--brand-primary); }

.dev-body { min-width: 0; max-width: 860px; }
.dev-section { scroll-margin-top: 96px; padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--brand-gray-200); }
.dev-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.dev-section h2 {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font: 800 clamp(1.5rem, 2.6vw, 1.9rem)/1.2 var(--vf-font-display); color: var(--brand-contrast);
}
.dev-section h3 { scroll-margin-top: 96px; margin: 32px 0 12px; font: 700 1.12rem var(--vf-font-display); color: var(--brand-contrast); }
.dev-section p, .dev-section li { color: var(--vf-slate); line-height: 1.65; }
.dev-section ul { padding-left: 1.2rem; }
.dev-section li { margin: 6px 0; }
.dev-num {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: #fde6e1; color: var(--brand-primary-dark); font-size: 0.95rem; font-weight: 800;
}

.dev-body :not(pre) > code {
  background: var(--brand-gray-100); border: 1px solid var(--brand-gray-200); border-radius: 6px;
  padding: 1px 6px; font-size: 0.86em; color: var(--brand-contrast); overflow-wrap: anywhere;
}

/* ── Code blocks ────────────────────────────────────────────── */
.dev-code {
  position: relative; margin: 16px 0; padding: 18px 20px; border-radius: 14px; overflow-x: auto;
  background: var(--vf-navy-900); color: #e6edf5; border: 1px solid var(--vf-navy-700);
  font-size: 0.84rem; line-height: 1.6;
}
.dev-code code { background: none; border: 0; padding: 0; color: inherit; white-space: pre; font-size: inherit; }
.dev-copy {
  position: absolute; top: 10px; right: 10px; padding: 5px 11px; border-radius: 8px; cursor: pointer;
  font: 700 0.75rem var(--vf-font-body); color: var(--vf-on-dark);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0; transition: opacity 0.15s ease, background 0.15s ease;
}
.dev-code:hover .dev-copy, .dev-copy:focus-visible { opacity: 1; }
.dev-copy:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.dev-copy.is-done { color: #7fe0a6; border-color: rgba(127, 224, 166, 0.4); opacity: 1; }
@media (hover: none) { .dev-copy { opacity: 1; } .dev-code { padding-right: 76px; } }

/* ── Tables ─────────────────────────────────────────────────── */
.dev-table { margin: 16px 0; overflow-x: auto; border: 1px solid var(--brand-gray-200); border-radius: 14px; }
.dev-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dev-table th {
  text-align: left; padding: 11px 16px; background: var(--brand-gray-100);
  font: 700 0.75rem var(--vf-font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--vf-muted);
}
.dev-table td { padding: 12px 16px; border-top: 1px solid var(--brand-gray-200); color: var(--vf-slate); vertical-align: top; }
.dev-table td:first-child { white-space: nowrap; }
.dev-table--ep table { table-layout: fixed; min-width: 640px; }
.dev-table--ep th:nth-child(1) { width: 40%; }
.dev-table--ep th:nth-child(2) { width: 15%; }
.dev-table--ep td:nth-child(2) { white-space: nowrap; font-size: 0.85rem; color: var(--vf-muted); }
.dev-body code.dev-ep { background: none; border: 0; padding: 0; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 10px; }
.dev-m {
  display: inline-block; min-width: 58px; text-align: center; padding: 3px 0; border-radius: 6px;
  font: 800 0.7rem var(--vf-font-body); letter-spacing: 0.04em;
}
.dev-m--get { background: #e3f4ea; color: #17804a; }
.dev-m--post { background: #e4edfb; color: #2457b8; }
.dev-m--patch { background: #fff1d6; color: #9a6200; }
.dev-m--delete { background: #fde6e1; color: #c93a26; }

/* ── Cards, steps, notes, tags ──────────────────────────────── */
.dev-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.dev-card { padding: 18px 18px 6px; border: 1.5px solid var(--brand-gray-200); border-radius: 16px; background: #fff; }
.dev-card p { font-size: 0.93rem; margin: 0 0 12px; }
.dev-section .dev-card__title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 700 1rem var(--vf-font-display); color: var(--brand-contrast); }

.dev-steps { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; }
.dev-steps > li { counter-increment: step; position: relative; padding: 0 0 8px 52px; margin: 0; }
.dev-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-primary); color: #fff; font: 800 0.95rem var(--vf-font-display);
}
.dev-steps > li::after { content: ""; position: absolute; left: 16px; top: 42px; bottom: 6px; width: 2px; background: var(--brand-gray-200); }
.dev-steps > li:last-child::after { display: none; }
.dev-section .dev-steps__title { display: flex; align-items: center; gap: 8px; margin: 5px 0 4px; font: 700 1.05rem var(--vf-font-display); color: var(--brand-contrast); }

.dev-note {
  margin: 18px 0; padding: 14px 18px; border-radius: 12px; font-size: 0.93rem; line-height: 1.6;
  background: #fff8e6; border: 1px solid #f6e2a8; color: var(--vf-slate);
}
.dev-note strong { color: var(--brand-contrast); }
.dev-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 0.7rem var(--vf-font-body);
  text-transform: uppercase; letter-spacing: 0.05em; background: var(--brand-gray-100); color: var(--vf-slate);
  border: 1px solid var(--brand-gray-200); vertical-align: middle;
}
.dev-changelog { list-style: none; padding: 0 !important; }
.dev-changelog li { display: flex; gap: 12px; align-items: baseline; }

/* ── Narrow screens: TOC becomes a scrolling chip strip ─────── */
@media (max-width: 959.95px) {
  .dev-docs { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .dev-toc { position: static; }
  .dev-toc ol { display: flex; gap: 8px; overflow-x: auto; border: 0; padding-bottom: 6px; scrollbar-width: none; }
  .dev-toc a { white-space: nowrap; padding: 7px 14px; margin: 0; border: 1px solid var(--brand-gray-200); border-radius: 999px; font-size: 0.85rem; }
  .dev-toc a.is-active { border-color: var(--brand-primary); }
  .dev-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599.95px) {
  .dev-docs { padding-left: 16px; padding-right: 16px; }
  .dev-steps > li { padding-left: 0; }
  .dev-steps > li::before { position: static; display: inline-grid; margin-bottom: 6px; }
  .dev-steps > li::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dev-toc a, .dev-copy { transition: none; } }

/* Collapsible category list */
.dev-details { margin: 16px 0; border: 1px solid var(--brand-gray-200); border-radius: 14px; }
.dev-details summary { cursor: pointer; padding: 14px 18px; font: 700 0.95rem var(--vf-font-display); color: var(--brand-contrast); }
.dev-details[open] summary { border-bottom: 1px solid var(--brand-gray-200); }
.dev-details .dev-table { margin: 0; border: 0; border-radius: 0 0 14px 14px; }
.dev-table--cats tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dev-table--cats thead { display: none; }
.dev-table--cats tr { display: flex; gap: 14px; }
.dev-table--cats td { border-top: 1px solid var(--brand-gray-200); }
.dev-table--cats td:first-child { width: 36px; color: var(--vf-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 599.95px) { .dev-table--cats tbody { grid-template-columns: minmax(0, 1fr); } }
.dev-table--fields table { table-layout: fixed; }
.dev-table--fields th:first-child { width: 42%; }
.dev-table--fields td:first-child { white-space: normal; line-height: 2; }
