/* Global CNW shell used by the Terminal product page. */
:root {
  --shell-border: rgba(21, 21, 21, .16);
  --shell-gutter: clamp(16px, 2.25vw, 32px);
}

/* The shared page-presence layer must never participate in document flow. */
.cnw-page-curtain {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .24s ease, visibility 0s linear 0s;
}
.cnw-page-loader {
  display: grid;
  min-width: 92px;
  gap: 12px;
  color: #102a43;
  font: 700 13px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .14em;
  text-align: center;
}
.cnw-page-loader i {
  display: block;
  width: 92px;
  height: 1px;
  overflow: hidden;
  background: rgba(16,42,67,.12);
}
.cnw-page-loader i::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: #315f8b;
  animation: cnwLoaderSweep .9s ease-in-out infinite alternate;
}
body.cnw-page-ready .cnw-page-curtain {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility 0s linear .24s;
}
body.cnw-page-leaving .cnw-page-curtain {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
@keyframes cnwLoaderSweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(248%); }
}
@media (prefers-reduced-motion: reduce) {
  .cnw-page-curtain { transition:none; }
  .cnw-page-loader i::after { animation:none; }
}

nav.cnw-global-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 500;
  width: min(90vw, 1180px);
  max-width: calc(100% - 32px);
  height: 52px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  padding: 6px;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background: rgba(238, 247, 251, .9);
  box-shadow: 0 18px 46px rgba(21, 18, 12, .08);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
  transform: translateX(-50%);
}

.cnw-global-brand {
  flex: 0 0 auto;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 6px;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.cnw-global-brand img { width: 30px; height: 30px; object-fit: contain; }

.cnw-global-primary {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 3.8vw, 54px);
}

.cnw-global-primary > a,
.cnw-products-toggle,
.cnw-research-toggle {
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  text-decoration: none;
  font: 650 15px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.cnw-global-primary > a:hover,
.cnw-products-toggle:hover,
.cnw-research-toggle:hover { opacity: .58; }

.cnw-global-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.cnw-global-nav .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, .48);
  font: 650 10px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
}
.cnw-global-nav .lang-toggle:hover { color: #111; }
.cnw-global-nav .lang-toggle .lt-on { color: #111; }
.cnw-global-nav .lang-toggle .lt-sep { color: rgba(17, 17, 17, .22); }

.cnw-global-access {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 690;
  white-space: nowrap;
}

.cnw-products-dropdown,
.cnw-research-dropdown { position: relative; align-self: stretch; display: flex; align-items: center; }

.cnw-products-panel,
.cnw-research-panel {
  position: absolute;
  top: calc(100% + 26px);
  left: 0;
  width: min(380px, calc(100vw - 40px));
  max-height: none !important;
  padding: 24px;
  border: 1px solid rgba(21,21,21,.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18,16,12,.13);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s linear .35s;
}

.cnw-global-nav.products-open .cnw-products-panel,
.cnw-global-nav.research-open .cnw-research-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.cnw-products-panel-inner,
.cnw-research-panel-inner { display: grid; gap: 22px; }
.cnw-products-panel section,
.cnw-research-panel section { display: grid; gap: 9px; }
.cnw-products-panel section + section,
.cnw-research-panel section + section { padding-top: 20px; border-top: 1px solid rgba(21,21,21,.12); }
.cnw-products-panel span,
.cnw-research-panel span { color: rgba(21,21,21,.55); font-size: 13px; font-weight: 650; }
.cnw-products-panel a,
.cnw-research-panel a { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #111; text-decoration: none; font-size: 18px; line-height: 1.18; }
.cnw-products-panel a:hover,
.cnw-research-panel a:hover { opacity: .58; }
.cnw-products-panel i,
.cnw-research-panel i { color: rgba(21,21,21,.52); font-style: normal; font-size: 16px; }

/* The old full-width reading line no longer belongs to the floating navigation. */
.cnw-scroll-progress { display: none !important; }

/* Compact two-column dropdown: the legacy card sizing made this panel 600px tall. */
html body nav.cnw-global-nav :is(.cnw-products-panel-inner, .cnw-research-panel-inner) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 22px !important;
}

html body nav.cnw-global-nav :is(.cnw-products-panel, .cnw-research-panel) section + section {
  padding: 0 0 0 22px !important;
  border-top: 0 !important;
  border-left: 1px solid rgba(21, 21, 21, .12) !important;
}

html body nav.cnw-global-nav :is(.cnw-products-panel, .cnw-research-panel) a {
  min-height: 0 !important;
  padding: 2px 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.cnw-menu-toggle {
  width: 38px;
  height: 38px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cnw-menu-toggle span { width: 20px; height: 1px; display: block; background: #111; transition: transform .25s ease; }
.cnw-global-nav.menu-open .cnw-menu-toggle span:first-child { transform: translateY(5.5px) rotate(45deg); }
.cnw-global-nav.menu-open .cnw-menu-toggle span:nth-child(2) { opacity: 0; }
.cnw-global-nav.menu-open .cnw-menu-toggle span:last-child { transform: translateY(-5.5px) rotate(-45deg); }

.cnw-mobile-panel {
  position: fixed;
  top: 66px;
  left: 50%;
  width: min(360px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  padding: 10px 20px 20px;
  border: 1px solid rgba(21,21,21,.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18,16,12,.13);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .3s ease, visibility 0s linear .3s;
  max-height: calc(100dvh - 86px);
  overflow-x: hidden;
  overflow-y: auto;
}

.cnw-global-nav.menu-open .cnw-mobile-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.cnw-mobile-view[hidden] { display: none !important; }
.cnw-mobile-view:not([hidden]) { display: flex; flex-direction: column; animation: cnw-mobile-view-in .28s cubic-bezier(.22,1,.36,1) both; }
.cnw-mobile-nav-item,
.cnw-mobile-view-head button,
.cnw-mobile-group a {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ecece8;
  background: transparent;
  color: #111;
  font: 600 17px/1.2 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  text-decoration: none;
}
.cnw-mobile-nav-item { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
button.cnw-mobile-nav-item { cursor: pointer; }
.cnw-mobile-drill > span:last-child { color: rgba(17,17,17,.42); font-size: 21px; font-weight: 400; }
.cnw-mobile-view > .cnw-mobile-nav-item:last-child { border-bottom: 0; }
.cnw-mobile-view-head { min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #deded9; }
.cnw-mobile-view-head button { width: auto; justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 11px 0; border-bottom: 0; color: rgba(17,17,17,.58); font-size: 13px; cursor: pointer; }
.cnw-mobile-view-head strong { grid-column: 2; font-size: 16px; font-weight: 700; }
.cnw-mobile-group { display: flex; flex-direction: column; padding-top: 18px; }
.cnw-mobile-group + .cnw-mobile-group { margin-top: 6px; padding-top: 20px; border-top: 1px solid #deded9; }
.cnw-mobile-group > span { margin-bottom: 7px; color: rgba(17,17,17,.48); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.cnw-mobile-group a { min-height: 42px; display: flex; align-items: center; padding: 10px 0; border-bottom-color: #f0f0ed; font-size: 16px; }
.cnw-mobile-group a:last-child { border-bottom: 0; }
@keyframes cnw-mobile-view-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

.cnw-global-footer { margin: 0; padding: 0; background: #0b0b0b; color: #fff; }
.cnw-global-footer-inner { width: min(calc(100% - 96px), 1560px); min-height: 620px; margin: 0 auto; padding: 86px 0 28px; display: flex; flex-direction: column; justify-content: space-between; }
.cnw-global-footer-links { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: clamp(42px, 6vw, 88px); }
.cnw-global-footer-links section { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.cnw-global-footer-links span,
.cnw-global-footer-links b { color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.2; font-weight: 500; }
.cnw-global-footer-links b { margin: 25px 0 2px; }
.cnw-global-footer-links a { color: rgba(255,255,255,.86); text-decoration: none; font-size: 14px; line-height: 1.35; }
.cnw-global-footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cnw-global-footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding-top: 72px; }
.cnw-global-footer-bottom p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; text-align: center; }
.cnw-footer-social { display: flex; align-items: center; gap: 22px; }
.cnw-footer-social a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 13px; }
.cnw-footer-locale { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 21px; border-radius: 999px; background: #1f1f1f; color: rgba(255,255,255,.84); font-size: 14px; }
.cnw-footer-locale span + span { color: rgba(255,255,255,.55); }

.cnw-backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 480;
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(16,42,67,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #102a43;
  box-shadow: 0 10px 26px rgba(16,42,67,.12);
  font: 600 16px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}
.cnw-backtop.visible { display: grid; }

@media (max-width: 920px) {
  nav.cnw-global-nav { width: calc(100% - 24px); justify-content: space-between; }
  .cnw-global-primary, .cnw-global-access { display: none; }
  .cnw-menu-toggle { display: flex; }
  .cnw-global-footer-links { grid-template-columns: 1fr 1fr; row-gap: 42px; }
  .cnw-global-footer-inner { width: calc(100% - 32px); min-height: auto; padding-top: 56px; }
  .cnw-global-footer-bottom { grid-template-columns: 1fr; justify-items: start; }
  .cnw-global-footer-bottom p { text-align: left; }
  .cnw-footer-locale { justify-self: start; }
}

@media (max-width: 560px) {
  .cnw-global-brand span { display: none; }
  .cnw-global-footer-links { grid-template-columns: 1fr; }
}

/* Canonical marketing navigation. Kept intentionally strong so page themes cannot restyle it. */
html body nav.cnw-global-nav {
  position: fixed !important;
  inset: 14px auto auto 50% !important;
  z-index: 500 !important;
  width: min(90vw, 1180px) !important;
  min-width: 0 !important;
  max-width: calc(100% - 32px) !important;
  height: 52px !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  gap: clamp(16px, 2vw, 30px) !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid rgba(21,21,21,.16) !important;
  border-radius: 10px !important;
  background: rgba(238,247,251,.92) !important;
  box-shadow: 0 18px 46px rgba(21,18,12,.08) !important;
  color: #111 !important;
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(18px) saturate(1.04) !important;
}
html body nav.cnw-global-nav .cnw-global-brand {
  width: auto !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 12px 0 6px !important;
  color: #111 !important;
  font: 720 14px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
}
html body nav.cnw-global-nav .cnw-global-brand img { width: 30px !important; height: 30px !important; margin: 0 !important; filter: none !important; opacity: 1 !important; }
html body nav.cnw-global-nav .cnw-nav-context { display: none !important; }
html body nav.cnw-global-nav .cnw-global-primary { min-width: 0 !important; flex: 1 1 auto !important; display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: clamp(24px,3.8vw,54px) !important; }
html body nav.cnw-global-nav .cnw-global-primary > a,
html body nav.cnw-global-nav .cnw-products-toggle,
html body nav.cnw-global-nav .cnw-research-toggle {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  font: 650 15px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html body nav.cnw-global-nav .cnw-global-actions { margin: 0 0 0 auto !important; display: flex !important; align-items: center !important; gap: 8px !important; }
html body nav.cnw-global-nav .cnw-global-access {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #111 !important;
  color: #fff !important;
  font: 690 14px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
html body nav.cnw-global-nav .cnw-products-dropdown,
html body nav.cnw-global-nav .cnw-research-dropdown { position: relative !important; align-self: stretch !important; display: flex !important; align-items: center !important; }
html body nav.cnw-global-nav .cnw-products-panel,
html body nav.cnw-global-nav .cnw-research-panel {
  top: calc(100% + 26px) !important;
  left: 0 !important;
  width: min(380px,calc(100vw - 40px)) !important;
  padding: 24px !important;
  border: 1px solid rgba(21,21,21,.1) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(18,16,12,.13) !important;
  color: #111 !important;
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
}
html body nav.cnw-global-nav :is(.cnw-products-panel,.cnw-research-panel) span { color: rgba(21,21,21,.55) !important; font: 650 13px/1.2 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
html body nav.cnw-global-nav :is(.cnw-products-panel,.cnw-research-panel) a { margin: 0 !important; padding: 0 !important; border: 0 !important; color: #111 !important; font: 500 18px/1.18 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
html body nav.cnw-global-nav :is(.cnw-products-panel,.cnw-research-panel) i { color: rgba(21,21,21,.52) !important; font: 400 16px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important; }

@media (max-width: 920px) {
  html body nav.cnw-global-nav { width: calc(100% - 24px) !important; }
  html body nav.cnw-global-nav .cnw-global-primary,
  html body nav.cnw-global-nav .cnw-global-access { display: none !important; }
  html body nav.cnw-global-nav .cnw-menu-toggle { display: flex !important; }
}

/* Pages using identity.css carry body-specific legacy rules. This is the final source of truth. */
html body[class] nav.cnw-global-nav {
  left: 50vw !important;
  width: min(calc(100vw - 32px), 1180px) !important;
  max-width: none !important;
  background: rgba(238,247,251,.92) !important;
  border-color: rgba(21,21,21,.16) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 46px rgba(21,18,12,.08) !important;
}
html body[class] nav.cnw-global-nav .cnw-global-primary > a,
html body[class] nav.cnw-global-nav .cnw-products-toggle,
html body[class] nav.cnw-global-nav .cnw-research-toggle {
  color: #111 !important;
  font: 650 15px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body[class] nav.cnw-global-nav .cnw-global-access {
  display: inline-flex !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  background: #111 !important;
  color: #fff !important;
  font: 690 14px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
}
html body[class] nav.cnw-global-nav .lang-toggle {
  display: inline-flex !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(17,17,17,.48) !important;
  font: 650 10px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: .06em !important;
}
html body[class] nav.cnw-global-nav .lang-toggle .lt-on { color: #111 !important; }
html body[class] nav.cnw-global-nav :is(.cnw-products-panel,.cnw-research-panel) {
  width: min(380px,calc(100vw - 40px)) !important;
  padding: 24px !important;
  border: 1px solid rgba(21,21,21,.1) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(18,16,12,.13) !important;
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
}
html body[class] nav.cnw-global-nav :is(.cnw-products-panel,.cnw-research-panel) span {
  color: rgba(21,21,21,.55) !important;
  font: 650 13px/1.2 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body[class] nav.cnw-global-nav :is(.cnw-products-panel,.cnw-research-panel) a {
  color: #111 !important;
  font: 500 18px/1.18 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body[class] nav.cnw-global-nav :is(.cnw-products-panel,.cnw-research-panel) i {
  color: rgba(21,21,21,.52) !important;
  font: 400 16px/1 "Inter Tight", "Helvetica Neue", Arial, sans-serif !important;
}
