/* compator-nav.css - the Compator site header and breadcrumb trail.
   Copied from the look of new.compator.com. Shared by the course pages and the
   demos, so every rule is scoped to .cx-* class names and cannot clash with a
   demo's own style sheet. */
.cx-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 242, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid #e7e4dc;
  font-family: Calibri, Carlito, "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  font-size: 16px; line-height: 1.5; color: #111318;
}
.cx-header *, .cx-header *::before, .cx-header *::after { box-sizing: border-box; }
.cx-inner {
  position: relative;
  max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3.5rem);
  min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cx-brand { display: flex; flex-shrink: 0; }
.cx-brand img { display: block; height: 30px; width: auto; }
.cx-nav { display: flex; align-items: center; gap: 12px; }
.cx-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; font-size: 0.9375rem; }
.cx-links a {
  display: block; padding: 11px 14px; border-radius: 999px;
  color: #111318; font-weight: 500; text-decoration: none; transition: background-color 0.15s;
}
.cx-links a:hover { background: #efede7; }
.cx-links a.cx-secondary { color: #5b5f6b; }
.cx-cta {
  display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px;
  background: #111318; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
}
.cx-cta:hover { background: #2b2e36; color: #fff; }
.cx-menu {
  display: none; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid #e7e4dc; border-radius: 999px; background: #fff; color: #111318;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.cx-menu-icon { width: 16px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 -5px, 0 5px; }

@media (max-width: 1100px) {
  .cx-menu { display: inline-flex; }
  .cx-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px clamp(1rem, 4vw, 3.5rem) 24px;
    background: #f7f6f2; border-bottom: 1px solid #e7e4dc; box-shadow: 0 12px 24px rgba(17, 19, 24, 0.08);
  }
  .cx-nav.cx-open { display: flex; }
  .cx-links { flex-direction: column; align-items: stretch; }
  .cx-cta { justify-content: center; }
}

/* Breadcrumb trail: a full-width bar under the menu. */
.cx-trail { background: #efede7; border-top: 1px solid #e7e4dc; font-size: 15px; }
.cx-trail ol {
  list-style: none; margin: 0 auto; max-width: 1440px; padding: 10px clamp(1rem, 4vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 4px 0;
}
.cx-trail li { color: #5b5f6b; }
.cx-trail li + li::before { content: "/"; margin: 0 10px; color: #5b5f6b; }
.cx-trail a { color: #044e73; font-weight: 600; text-decoration: none; }
.cx-trail a:hover { text-decoration: underline; }
.cx-trail [aria-current] { color: #3e414b; }
