/* ==========================================================================
   Confirm — Customer Resources
   Global stylesheet / design system
   --------------------------------------------------------------------------
   Single source of truth for colors, typography, layout and components.
   All pages share this file. Theme via the CSS variables in :root.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — deep, trustworthy navy with a "confirm" green accent */
  --brand-900: #0d2438;
  --brand-800: #123250;
  --brand-700: #184468;
  --brand-600: #1f5688;
  --brand-500: #2c6fab;
  --brand-100: #e6f0f8;
  --brand-50:  #f3f8fc;

  /* Accent — the confirmation green (checkmarks, success, CTAs) */
  --accent-600: #128a5a;
  --accent-500: #16a36a;
  --accent-100: #e2f5ec;

  /* Neutrals */
  --ink-900: #11202e;   /* primary text */
  --ink-700: #36475a;   /* body text */
  --ink-500: #677889;   /* muted text */
  --ink-300: #aab6c2;   /* borders, dividers */
  --surface:  #ffffff;  /* cards */
  --canvas:   #f5f7fa;  /* page background */
  --canvas-2: #eef2f6;

  /* Feedback */
  --danger-500: #d64545;
  --warning-500: #d99211;

  /* Typography */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;

  /* Radii & shadows */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 36, 56, 0.06), 0 1px 3px rgba(13, 36, 56, 0.08);
  --shadow-md: 0 4px 12px rgba(13, 36, 56, 0.08), 0 2px 4px rgba(13, 36, 56, 0.06);
  --shadow-lg: 0 12px 28px rgba(13, 36, 56, 0.12);

  /* Layout */
  --maxw: 1140px;
  --gap: 24px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* The hidden attribute must win over rules like .video-card { display: flex } */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 650;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-800); text-decoration: underline; }

img, video { max-width: 100%; display: block; }

/* Reusable container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Accessibility helper */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  background: var(--brand-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Site header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--canvas-2);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink-900);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
}
.brand__mark svg { width: 18px; height: 18px; }
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--ink-700);
  font-weight: 550;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-800); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--brand-700);
  background: var(--brand-100);
}

/* External-link indicator (e.g. Release Notes) */
.ext-icon {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 5px;
  vertical-align: -0.05em;
  opacity: 0.7;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink-700);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(44, 111, 171, 0.18), transparent 60%),
    linear-gradient(160deg, var(--brand-900), var(--brand-700));
  color: #eaf2f9;
  padding: 64px 0 72px;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p {
  font-size: 1.12rem;
  max-width: 56ch;
  color: #cdddec;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-500); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }
.btn--outline { background: var(--surface); color: var(--brand-700); border-color: var(--ink-300); }
.btn--outline:hover { border-color: var(--brand-500); color: var(--brand-800); }

/* ---------- Section scaffolding ---------- */
.section { padding: 56px 0; }
.section__head { max-width: 60ch; margin-bottom: 32px; }
.section__head p { color: var(--ink-500); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 10px;
}

/* ---------- Card grid (generic) ---------- */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ---------- Resource / nav cards (home) ---------- */
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--canvas-2);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
  text-decoration: none;
}
.resource-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-700);
  margin-bottom: 8px;
}
.resource-card__icon svg { width: 26px; height: 26px; }
.resource-card h3 { margin: 0; }
.resource-card p { color: var(--ink-500); margin: 0; }
.resource-card__more {
  margin-top: 10px;
  font-weight: 600;
  color: var(--brand-600);
  font-size: 0.95rem;
}

/* ---------- Video cards ---------- */
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--canvas-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.video-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c1c2b;
}
.video-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c1c2b;
}
.video-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.video-card__body h3 { margin: 0; font-size: 1.08rem; }
.video-card__body p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }
.video-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: auto;
  padding-top: 12px;
}
.video-card__tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.video-card__tag--core {
  color: var(--ink-500);
  background: var(--canvas-2);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- Video toolbar (core filter pills + search) ---------- */
.video-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 24px;
}
.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.video-filters:empty { display: none; }
.video-filters__pill {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--ink-300);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.video-filters__pill:hover {
  border-color: var(--brand-500);
  color: var(--brand-800);
}
.video-filters__pill[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-600);
  border-color: var(--brand-600);
}
.videos-note {
  margin: -8px 0 24px;
  font-size: 0.9rem;
  color: var(--ink-500);
  font-style: italic;
}

/* Search box */
.video-search {
  position: relative;
  flex: 0 1 280px;
  min-width: 200px;
}
.video-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-500);
  pointer-events: none;
}
.video-search input {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--ink-300);
  border-radius: 999px;
  padding: 8px 16px 8px 36px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.video-search input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.video-search input::placeholder { color: var(--ink-500); }

/* Theater button (overlaid top-right of the card media) */
.video-card__theater {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(13, 36, 56, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(2px);
}
.video-card__theater svg { width: 15px; height: 15px; }
.video-card:hover .video-card__theater,
.video-card__theater:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.video-card__theater:hover { background: rgba(13, 36, 56, 0.85); }
/* Touch devices have no hover — keep the button visible */
@media (hover: none) {
  .video-card__theater { opacity: 1; transform: none; }
}

/* ---------- Theater modal (enlarged, not browser-fullscreen) ---------- */
body.has-modal-open { overflow: hidden; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.video-modal.is-open { display: flex; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 31, 0.78);
  backdrop-filter: blur(3px);
}
.video-modal__dialog {
  position: relative;
  width: min(1280px, 95vw);
  max-height: 92vh;
  background: #0c1c2b;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-pop 0.18s ease;
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.video-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  color: #eaf2f9;
}
.video-modal__title { font-weight: 600; font-size: 1.02rem; }
.video-modal__close {
  flex: none;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: #cdddec;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.video-modal__close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.video-modal__video {
  width: 100%;
  max-height: calc(92vh - 60px);
  background: #000;
  display: block;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--canvas-2);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-700); }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink-500);
  border-bottom: 2px solid var(--ink-500);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item__answer { padding: 0 22px 20px; color: var(--ink-700); }
.faq-item__answer > :first-child { margin-top: 0; }
.faq-item__answer :last-child { margin-bottom: 0; }
.faq-item__answer ul,
.faq-item__answer ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.faq-item__answer li { margin-bottom: 0.4rem; }
.faq-item__answer h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin: 1.25rem 0 0.6rem;
}
.faq-item code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--canvas-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand-800);
}

/* ---------- Training guide ---------- */
/* Long-form document page (training-guide.html). Scenario colors are
   semantic — they match the result colors agents see on screen. */
.guide {
  --sc-blue:   #1f6fd6;
  --sc-yellow: #c79100;
  --sc-orange: #e07c00;
  --sc-red:    #d64545;
  --sc-green:  #16a36a;
  --sc-gray:   #6b7889;
  --sc-blue-bg:   #e6f0fb;
  --sc-yellow-bg: #fdf4d8;
  --sc-orange-bg: #fcecd9;
  --sc-red-bg:    #fbe7e7;
  --sc-green-bg:  #e2f5ec;
  --sc-gray-bg:   #eef1f4;
  max-width: 860px;
}

.guide__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 8px;
}

/* On-page table of contents */
.guide-toc {
  background: var(--surface);
  border: 1px solid var(--canvas-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.guide-toc__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 10px;
}
.guide-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 32px;
}
.guide-toc li { margin-bottom: 6px; break-inside: avoid; }

/* Section scaffolding */
.guide section + section { margin-top: 48px; }
.guide section > h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-500);
  scroll-margin-top: 88px;
}
.guide section[data-color="blue"]   > h2 { border-color: var(--sc-blue); }
.guide section[data-color="yellow"] > h2 { border-color: var(--sc-yellow); }
.guide section[data-color="orange"] > h2 { border-color: var(--sc-orange); }
.guide section[data-color="red"]    > h2 { border-color: var(--sc-red); }
.guide section[data-color="green"]  > h2 { border-color: var(--sc-green); }
.guide section[data-color="gray"]   > h2 { border-color: var(--sc-gray); }
.guide h3 { margin-top: 1.5rem; }
.guide ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.guide li { margin-bottom: 0.5rem; }

/* Colored scenario chip (used in tables and headings) */
.chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip--blue   { color: var(--sc-blue);   background: var(--sc-blue-bg);   border-left: 3px solid var(--sc-blue); }
.chip--yellow { color: var(--sc-yellow); background: var(--sc-yellow-bg); border-left: 3px solid var(--sc-yellow); }
.chip--orange { color: var(--sc-orange); background: var(--sc-orange-bg); border-left: 3px solid var(--sc-orange); }
.chip--red    { color: var(--sc-red);    background: var(--sc-red-bg);    border-left: 3px solid var(--sc-red); }
.chip--green  { color: var(--sc-green);  background: var(--sc-green-bg);  border-left: 3px solid var(--sc-green); }
.chip--gray   { color: var(--sc-gray);   background: var(--sc-gray-bg);   border-left: 3px solid var(--sc-gray); }

/* Callout box (tips, warnings, notes) */
.callout {
  background: var(--brand-50);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 1.25rem 0;
}
.callout > strong:first-child { display: block; color: var(--ink-900); margin-bottom: 4px; }
.callout p:last-child { margin-bottom: 0; }
.callout--green { background: var(--accent-100); border-color: var(--accent-500); }
.callout--amber { background: #fdf4d8; border-color: var(--warning-500); }

/* Screenshot figures */
.guide figure {
  margin: 1.5rem 0;
}
.guide figure img {
  border: 1px solid var(--canvas-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-inline: auto;
}
.guide figcaption {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-500);
  margin-top: 10px;
}

/* Document tables */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--canvas-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}
.guide-table th {
  text-align: left;
  background: var(--brand-800);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
}
.guide-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--canvas-2);
  vertical-align: top;
}
.guide-table tbody tr:nth-child(even) { background: var(--brand-50); }

@media (max-width: 720px) {
  .guide-toc ol { columns: 1; }
  .guide-table { display: block; overflow-x: auto; }
}

/* ---------- Empty / loading state ---------- */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-500);
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-900);
  color: #b9cadb;
  margin-top: 64px;
  padding: 40px 0 32px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer a { color: #d7e4f1; }
.site-footer a:hover { color: #fff; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__copy { font-size: 0.85rem; color: #7f97ad; width: 100%; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--canvas-2);
    box-shadow: var(--shadow-md);
    padding: 8px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-toggle { display: inline-flex; }
  .site-header { position: relative; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0 52px; }
}

/* ==========================================================================
   Reseller API documentation — additions on top of the shared design system.
   ========================================================================== */

/* HTTP method badges */
.method {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 5px;
  color: #fff;
  text-transform: uppercase;
  vertical-align: middle;
}
.method--get    { background: #1f6fd6; }
.method--post   { background: var(--accent-600); }
.method--put    { background: #c17d12; }
.method--delete { background: var(--danger-500); }

/* Endpoint summary rows (overview of the surface) */
.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 1.25rem 0;
}
.endpoint-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--canvas-2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
}
.endpoint-row code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brand-800);
  white-space: nowrap;
}
.endpoint-row__desc {
  color: var(--ink-500);
  font-size: 0.92rem;
  margin-left: auto;
  text-align: right;
}

/* Code blocks (request/response/snippets) */
.code-block {
  position: relative;
  background: #0c1c2b;
  color: #e7eff7;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.code-block pre { margin: 0; }
.code-block code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: inherit;
  white-space: pre;
}
.code-block__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7fa6c8;
  margin-bottom: 8px;
}

/* Numbered auth-flow steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 56px;
  border-left: 2px solid var(--brand-100);
  margin-left: 18px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -18px;
  top: -2px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 0 4px var(--canvas);
}
.steps > li h3 { margin: 4px 0 8px; font-size: 1.08rem; }
.steps > li :last-child { margin-bottom: 0; }

/* Full-bleed Scalar reference host */
.api-reference-frame {
  min-height: calc(100vh - 64px);
}
.api-reference-frame .scalar-app { --scalar-custom-header-height: 0; }

/* Compact intro band above an embedded reference */
.doc-band {
  background: var(--brand-50);
  border-bottom: 1px solid var(--canvas-2);
  padding: 22px 0;
}
.doc-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.doc-band h1 { margin: 0; font-size: 1.4rem; }
.doc-band p { margin: 4px 0 0; color: var(--ink-500); font-size: 0.95rem; }

/* Inline key/value definition list for response props */
.def-table th { white-space: nowrap; }
.def-table code,
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--canvas-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand-800);
}

/* Long-form prose column (guides / getting started) */
.prose { max-width: 820px; }
.prose h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-500);
  scroll-margin-top: 88px;
  margin-top: 2.5rem;
}
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
