/* STUDIO BAR for pages that carry their own design (product landings).
   Self-contained and scoped to `.sn`, so it cannot collide with a landing's own CSS and
   needs neither Design/styles.css nor site.css. Same look and links as the nav in site.css. */

html { scroll-padding-top: 72px; }   /* in-page anchors must not hide under the sticky bar */

.sn { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #E4EBF0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; color: #011631; -webkit-font-smoothing: antialiased; }
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sn a { text-decoration: none; color: inherit; }
.sn-inner { max-width: 1040px; margin: 0 auto; padding: 0 40px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.sn-brand { display: flex; align-items: center; gap: 11px; }
.sn-brand img { width: 34px; height: 34px; display: block; flex: none; }
.sn-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.sn-name span { color: #8C99A8; font-weight: 500; }
.sn-items { display: flex; align-items: center; gap: 6px; }
.sn-link { color: #4A5A6E; font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.sn-link:hover { color: #011631; background: #EFF8FC; }
.sn-sub { background: #0B79C6; color: #fff !important; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 8px; margin-left: 8px; }
.sn-sub:hover { background: #095F9E; }
.sn a:focus-visible { outline: 2px solid #0B79C6; outline-offset: 2px; }

.sn-has { position: relative; }
.sn-has > .sn-link::after { content: "▾"; font-size: 10px; margin-left: 6px; color: #8C99A8; }
.sn-menu { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 600px; max-width: 92vw;
  background: #fff; border: 1px solid #E4EBF0; border-radius: 14px; box-shadow: 0 8px 30px rgba(1,22,49,.12); padding: 20px; z-index: 110; }
.sn-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }  /* hover bridge over the gap */
.sn-has:hover > .sn-menu, .sn-has:focus-within > .sn-menu { display: block; }
.sn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.sn-item { display: block; padding: 10px; border-radius: 8px; }
.sn-item:hover { background: #EFF8FC; }
.sn-title { font-size: 14px; font-weight: 600; color: #011631; display: flex; align-items: center; gap: 8px; }
.sn-dot { width: 7px; height: 7px; border-radius: 50%; background: #12A150; flex: none; }
.sn-desc { display: block; font-size: 12.5px; color: #4A5A6E; margin-top: 3px; line-height: 1.4; }
.sn-promo { margin-top: 14px; padding-top: 16px; border-top: 1px solid #E4EBF0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sn-promo-text { font-size: 13px; color: #4A5A6E; }
.sn-promo-text b { color: #011631; font-weight: 600; }
.sn-btn { font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 8px; white-space: nowrap; }
.sn-btn.primary { background: #0B79C6; color: #fff !important; }
.sn-btn.primary:hover { background: #095F9E; }
.sn-btn.secondary { background: #fff; color: #011631; border: 1px solid #D3DDE6; }
.sn-btn.secondary:hover { border-color: #8C99A8; }

@media (max-width: 760px) {
  .sn-inner { padding: 0 18px; }
  .sn-menu { display: none !important; }   /* hover menus don't exist on touch; Products / Tools open their pages */
  .sn-items { gap: 2px; }
  .sn-link { padding: 8px; }
  .sn-sub { padding: 9px 12px; margin-left: 4px; }
}
@media (max-width: 480px) {
  .sn-name { display: none; }
}
