/* Full-width dropdown and frosted page backdrop. */
:root { --nav-fade: 200ms; }
.site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color var(--nav-fade) ease-in-out, border-color var(--nav-fade) ease-in-out, transform 300ms cubic-bezier(.4,0,.2,1); }
.nav { gap: 8px; }
.nav > .brand { margin-right: 10px; }
.nav-menu { gap: 8px; }
@media (min-width: 640px) {
  .nav > .brand .brand-mark { width: 34px; height: 34px; }
}
.nav-trigger, .nav-link { color: #111827; transition: color var(--nav-fade) ease-in-out; }
.nav-trigger:hover, .nav-link:hover, .nav-item.open .nav-trigger { background: none; color: var(--brand-600); }
.nav-trigger .caret { color: #d1d5db; opacity: 1; }
.nav-item.open .caret { color: currentColor; transform: none; }
.nav-trigger::after { content: ""; position: absolute; inset: 100% 0 auto; height: 16px; }
.nav-cta .btn-ghost { padding-inline: 24px; border-color: #e5e7eb; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.nav-backdrop { display: none; }
.site-header.dropdown-open { border-bottom-color: #f3f4f6; }
.site-header.on-dark.dropdown-open:not(.scrolled) { background: #fff; }
.site-header.on-dark.dropdown-open:not(.scrolled) .nav-trigger { color: #111827; }
.site-header.on-dark.dropdown-open:not(.scrolled) .nav-trigger:hover,
.site-header.on-dark.dropdown-open:not(.scrolled) .nav-item.open .nav-trigger { color: var(--brand-600); }

@media (min-width: 1024px) {
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 49; background: rgb(229 231 235 / .3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--nav-fade) ease-in-out, visibility var(--nav-fade) ease-in-out; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  .drop { position: fixed; top: var(--header-h); inset-inline: 0; width: 100%; min-width: 0; padding: 0; background: #fff; border: 0; border-top: 1px solid #f3f4f6; border-radius: 0; box-shadow: 0 25px 50px -12px rgb(31 41 55 / .03); transform: none; transition: opacity var(--nav-fade) ease-in-out, visibility var(--nav-fade) ease-in-out; }
  .drop-inner { display: flex; align-items: flex-start; gap: 24px; padding-top: 23px; padding-bottom: 40px; }
  .drop-links { margin-left: var(--menu-offset, 52px); flex-shrink: 0; }
  .drop .drop-links a { display: block; padding: 2px 14px; border-radius: 6px; font-size: 18px; line-height: 28px; font-weight: 400; color: #4b5563; transition: color var(--nav-fade) ease-in-out; }
  .drop a:hover { background: transparent; }
  .drop .drop-links a:hover { color: var(--brand-600); }
  .drop .nav-feature { display: flex; align-items: flex-start; flex: 0 0 320px; gap: 16px; margin-left: auto; padding: 0; border-radius: 6px; }
  .nav-feature-art { position: relative; display: none; flex: 0 0 144px; height: 144px; }
  .nav-feature-art::before { content: ""; position: absolute; inset: 0 0 0 50px; background: var(--brand-50); border-radius: 8px; }
  .nav-feature-art img { position: relative; width: 144px; height: 144px; object-fit: contain; }
  .nav-feature-copy { display: flex; flex-direction: column; min-width: 0; }
  .nav-feature-label { color: #9ca3af; font-size: 12px; line-height: 16px; }
  .nav-feature-title { margin-top: 4px; color: #111827; font-size: 15px; line-height: 22.5px; transition: color var(--nav-fade) ease-in-out; }
  .nav-feature-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 6px; color: #6b7280; font-size: 13px; line-height: 20px; }
  .nav-feature:hover .nav-feature-title { color: var(--brand-600); }
}
@media (min-width: 1110px) {
  .drop .nav-feature { flex-basis: 420px; }
  .nav-feature-art { display: block; }
}
@media (min-width: 1140px) { .drop .nav-feature { flex-basis: 440px; } }
@media (min-width: 1440px) { .drop .nav-feature { flex-basis: 520px; } }

@media (max-width: 1023px) {
  .mobile-menu { display: flex; flex-direction: column; padding: 16px 18px 32px; transform: none; transition: opacity var(--nav-fade) ease-in-out, visibility var(--nav-fade) ease-in-out; }
  .mobile-links { flex: 1; }
  .mobile-menu details { border: 0; }
  /* "Data Partnerships" is a plain link (.m-top) among the drop-downs, so it takes the same row. */
  .mobile-menu summary, .mobile-menu .m-top { padding: 12px 8px; border-radius: 6px; color: #000; font-size: 20px; line-height: 28px; font-weight: 400; }
  .mobile-menu .m-top { display: block; }
  .mobile-menu summary .caret { width: 16px; height: 16px; opacity: 1; }
  .mobile-menu summary:hover, .mobile-menu .m-top:hover, .mobile-menu .m-links a:hover { background: rgb(243 244 246 / .8); }
  .mobile-menu .m-links { margin-top: 4px; padding: 0 0 0 12px; gap: 4px; }
  .mobile-menu .m-links a { padding: 10px 8px; border-radius: 6px; color: #000; font-size: 14px; line-height: 21px; }
  .mobile-menu .m-cta { display: flex; flex: none; justify-content: center; gap: 16px; margin-top: 32px; }
  .mobile-menu .m-cta .btn { height: 38px; padding-inline: 16px; }
  .mobile-menu .m-cta .btn-outline { padding-inline: 24px; border-color: #e5e7eb; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
}
@media (prefers-reduced-motion: reduce) {
  :root { --nav-fade: 0ms; }
}

/* Over a dark hero, before scrolling: translucent Log in and a white primary, as in the reference. */
.site-header.on-dark:not(.scrolled) .nav-cta a[href="login.html"] { background:rgb(255 255 255 / .2); border-color:rgb(255 255 255 / .4); color:#fff; box-shadow:none; }
.site-header.on-dark:not(.scrolled) .nav-cta a[href="login.html"]:hover { background:rgb(255 255 255 / .3); }
.site-header.on-dark:not(.scrolled) .nav-cta a[href="contact.html"] { background:#fff; border-color:#fff; color:#000; }
.site-header.on-dark:not(.scrolled) .nav-cta a[href="contact.html"]:hover { background:#f3f4f6; }
/* As in the reference, the current section's trigger keeps the gray-900 of the others, and Log in is black. */
.nav-link.active, .nav-item.active .nav-trigger { color: #111827; }
.nav-cta a[href="login.html"] { color: #000; }
