/* 3D viewer menu: isolated from the AI-tools and course dropdowns. */
.yx3d-site-nav { position: relative; flex-shrink: 0; color: inherit; }
.yx3d-site-nav > summary {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 6px;
  font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap;
  cursor: pointer; list-style: none;
}
.yx3d-site-nav > summary::-webkit-details-marker { display: none; }
.yx3d-site-nav > summary::marker { content: ''; }
.yx3d-site-nav > summary:hover, .yx3d-site-nav[open] > summary { background: rgba(127,127,127,.12); }
.yx3d-site-nav > summary:focus-visible, .yx3d-site-nav-panel a:focus-visible { outline: 2px solid #2580df; outline-offset: 2px; }
.yx3d-site-nav-caret { font-size: 10px; transition: transform .15s; }
.yx3d-site-nav[open] > summary .yx3d-site-nav-caret { transform: rotate(180deg); }
.yx3d-site-nav-panel {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 1100;
  min-width: 184px; max-width: calc(100vw - 32px); padding: 6px; border-radius: 10px;
  background: #1c1d1f; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(0,0,0,.24);
}
.yx3d-site-nav-panel a { display: block; min-height: 44px; padding: 11px 12px; box-sizing: border-box; color: #f8fafc; border-radius: 6px; font-size: 14px; line-height: 22px; text-decoration: none; white-space: nowrap; }
.yx3d-site-nav-panel a:hover { background: rgba(127,127,127,.15); color: #fff; }
.topbar.on-light .yx3d-site-nav { color: #0f172a; }
.topbar.on-light .yx3d-site-nav-panel { background: rgba(255,255,255,.98); border-color: rgba(15,23,42,.1); }
.topbar.on-light .yx3d-site-nav-panel a { color: #0f172a; }
.yx3d-site-nav--mobile { display: none; }
.yx3d-purchase-jumps { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 680px; margin: 24px auto 0; padding: 0 16px; }
.yx3d-purchase-jumps a { padding: 10px 16px; border: 1px solid #d8d9ed; border-radius: 999px; color: #4f46b5; background: #f7f6ff; text-decoration: none; }
.yx3d-purchase section { scroll-margin-top: calc(var(--topbar-offset, 64px) + 16px); }
.yx3d-purchase .yx-expand-card.is-embedded { padding-top: 12px !important; }
.yx3d-purchase .yx-expand-card.is-embedded h2 { font-size: 1.7em; }
.yx3d-purchase-pay { min-height: 44px; padding: 12px 20px; border: 0; border-radius: 8px; background: #6366f1; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.yx3d-purchase-pay:hover { background: #5148d6; }
.yx3d-purchase-pay:focus-visible { outline: 2px solid #2580df; outline-offset: 3px; }
.yx3d-purchase-pay-note { margin: 10px 0 0; color: #777; font-size: 13px; }
@media (max-width: 1100px) {
  .topbar-inner > .yx3d-site-nav--desktop { display: none; }
  .yx3d-site-nav--mobile { display: block; border-top: 1px solid rgba(127,127,127,.2); }
  .yx3d-site-nav--mobile > summary { min-height: 48px; box-sizing: border-box; padding: 12px 16px; justify-content: space-between; }
  .yx3d-site-nav--mobile .yx3d-site-nav-panel { position: static; max-width: none; min-width: 0; box-shadow: none; border: 0; border-radius: 0; padding: 0 8px 8px 20px; background: transparent; }
  .yx3d-site-nav--mobile .yx3d-site-nav-panel a { min-height: 48px; padding-top: 13px; padding-bottom: 13px; }
}
