/*
  Agentic Optimizer docs brand layer.

  Keep the top bar to the two things it should be: the brand on the left and
  search on the right. The full navigation lives in the left rail, so the
  top-bar TOC and the theme switcher are intentionally hidden.
*/
.navbar #navbar > ul.navbar-nav,
.navbar #navbar > form.icons {
  display: none !important;
}

:root {
  --ao-cyan: #22d3ee;
  --ao-violet: #a855f7;
  --ao-magenta: #f472b6;
  --ao-gradient: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #f472b6 100%);
}

#logo {
  height: 28px;
  width: auto;
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* The signature diagonal rule under the H1 anchors every page to the brand. */
article > h1:first-child {
  padding-bottom: 0.35rem;
  border-bottom: 3px solid transparent;
  border-image: var(--ao-gradient) 1;
}

/* Scenario pages use a three-part chain: IF → THEN → RESULT. Style the
   blockquote that carries the compact version so the chain reads at a glance. */
article blockquote {
  border-left: 4px solid var(--ao-violet);
  background: color-mix(in srgb, var(--ao-violet) 7%, transparent);
  padding: 0.75rem 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
}

article blockquote p {
  margin-bottom: 0;
}

/* Stage badges used inline in the markdown: **IF**, **THEN**, **RESULT**. */
article strong {
  color: inherit;
}

.ao-stage {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  color: #fff;
  background: var(--ao-violet);
  vertical-align: 0.1em;
}

.ao-stage-if { background: var(--ao-cyan); color: #04222a; }
.ao-stage-then { background: var(--ao-violet); }
.ao-stage-result { background: var(--ao-magenta); color: #2a0718; }
