/* OpsTrainer public pages — API documentation
   ------------------------------------------------------------------
   This page is rendered by courses.css, the same stylesheet the catalog
   uses: same nav, same hero, same card, same footer, same breakpoints.
   Nothing about the chrome is defined here. What lives here is only what a
   reference page needs and a catalog card does not: code blocks, endpoint
   headings, parameter tables. */

/* The catalog lays cards out in a grid; a reference reads as one column, so the cards stack in the same 1100px container. */
.ad-stack { display: flex; flex-direction: column; gap: 24px; }
.ct-card h3 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700; color: var(--gray-900); margin: 22px 0 6px; }
.ct-card h3:first-child { margin-top: 0; }
.ct-card p { color: var(--gray-700); margin-bottom: 10px; }
.ct-card p:last-child { margin-bottom: 0; }
.ct-card ul { margin: 6px 0 12px 20px; color: var(--gray-700); }
.ct-card li { margin-bottom: 6px; }
.ct-card a { color: var(--primary); }
.ad-muted { color: var(--gray-500); font-size: 14px; }
code { background: var(--gray-100); padding: 2px 6px; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: var(--gray-900); }
pre { background: var(--dark); color: #e5e7eb; padding: 18px 20px; border-radius: 10px; overflow-x: auto; margin: 12px 0 16px; }
pre code { background: none; color: inherit; padding: 0; font-size: 13px; line-height: 1.6; }
.ad-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 14px; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.ad-table th { text-align: left; padding: 10px 12px; background: var(--gray-100); color: var(--gray-900); font-weight: 700; border-bottom: 1px solid var(--gray-200); }
.ad-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); vertical-align: top; color: var(--gray-700); }
@media (max-width: 640px) {
  .ct-card { padding: 20px; }
  pre { padding: 14px; font-size: 12.5px; }
  pre code { font-size: 12px; }
  .ad-stack { gap: 16px; }
}

/* ---- 2026-11-12 API page redesign -------------------------------------
   Additions only: the nav, hero, cards, footer and breakpoints still come
   from courses.css. These rules cover what this page now contains and did
   not before: calls to action in the hero, a numbered flow, copy buttons and
   inline emphasis. No new framework, no new dependency. */
.ad-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ad-btn { display: inline-block; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--gray-300); background: #fff; color: var(--gray-900); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.ad-btn:hover { background: var(--gray-100); border-color: var(--gray-500); }
.ad-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ad-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.ad-btn-primary:hover { filter: brightness(0.94); color: #fff; }

.ad-flow { margin: 12px 0 14px 20px; color: var(--gray-700); }
.ad-flow li { margin-bottom: 10px; line-height: 1.55; }

pre { position: relative; }
.ad-copy { position: absolute; top: 10px; right: 10px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: #e5e7eb; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 6px; cursor: pointer; }
.ad-copy:hover { background: rgba(255,255,255,.2); }
.ad-copy:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

.ct-card h2 { scroll-margin-top: 88px; }
.ad-table td:first-child { white-space: nowrap; }
@media (max-width: 640px) {
  .ad-cta-row .ad-btn { width: 100%; text-align: center; }
  .ad-table td:first-child { white-space: normal; }
}
