.outline-navigation {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 48px;
  padding: 7px 12px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 24, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}
.outline-navigation a,
.outline-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #f4f8ff;
  font: 700 0.78rem/1 "Quicksand", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.outline-navigation > :first-child { border-radius: 9px 0 0 9px; }
.outline-navigation > :last-child { border-right: 0; border-radius: 0 9px 9px 0; }
.outline-navigation > :only-child {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
}
.outline-navigation a:hover,
.outline-navigation button:hover,
.outline-navigation a:focus-visible,
.outline-navigation button:focus-visible { background: #1360c5; outline: none; }

/* Every outline includes an older decorative language logo.  It is hidden in
   the document head but the per-language stylesheet used to override that
   rule, leaving a clipped fragment in the top-right corner. */
.logo { display: none !important; }
@media (max-width: 520px) {
  .outline-navigation { justify-content: flex-start; overflow-x: auto; }
  .outline-navigation a,
  .outline-navigation button { flex: 0 0 auto; padding: 0 10px; }
}

/* The marker is written inline in every outline head, before the document
   body can paint.  That gives the section animation a real first frame rather
   than showing the finished outline and then snapping it back into motion. */
/* Outlines are long reference documents.  Avoid entrance/reflow motion that
   can make the logo/header appear to jump and distract from reading. */
html.liem-outline-loading body > header,
html.liem-outline-loading body > .title,
html.liem-outline-loading body > .subheader,
html.liem-outline-loading body > details { opacity: 1; transform: none; }

body.liem-outline-ready > header,
body.liem-outline-ready > .title,
body.liem-outline-ready > .subheader,
body.liem-outline-ready > details { animation: none; }

details > summary { transition: filter 0.14s ease; }
details > summary:hover { filter: brightness(1.06); }
details[open] > :not(summary) { animation: none; }

@keyframes outlineSectionIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes outlineBodyIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

html.liem-reduce-animations body.liem-outline-ready > header,
html.liem-reduce-animations body.liem-outline-ready > .title,
html.liem-reduce-animations body.liem-outline-ready > .subheader,
html.liem-reduce-animations body.liem-outline-ready > details,
html.liem-reduce-animations details[open] > :not(summary) { animation: none; }
