/* ==========================================================================
   Public site chrome — announcement bar, header (views/partials/landing-nav.ejs)
   and footer (views/partials/landing-footer.ejs). Values copied from
   docs/design/now-era/Landing.dc.html. Self-contained so the partials also
   look right on pages that still load legacy CSS (landing.css, Bootstrap).
   ========================================================================== */

.ne-sh-announce,
.ne-sh,
.ne-sf {
  --sc-ink: var(--ne-ink, #17140F);
  --sc-ink-2: var(--ne-ink-2, #3D3832);
  --sc-line: var(--ne-line, #E8E4DC);
  --sc-accent: var(--ne-accent, #F29620);
  --sc-dark-line: var(--ne-dark-4, #2E2A24);
  --sc-dark-text: var(--ne-dark-text, #D9D3C8);
  --sc-dark-muted: var(--ne-dark-muted, #B9B2A6);
  --sc-font: var(--ne-font, 'Readex Pro', 'Inter', system-ui, sans-serif);
  --sc-font-display: var(--ne-font-display, 'Space Grotesk', 'Readex Pro', sans-serif);
  --sc-font-num: var(--ne-font-num, 'Space Grotesk', 'Inter', sans-serif);
  --sc-focus: var(--ne-focus, 0 0 0 4px rgba(242, 150, 32, 0.22));
  font-family: var(--sc-font);
  line-height: normal;
  letter-spacing: 0;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.ne-sh-announce *, .ne-sh *, .ne-sf * { box-sizing: border-box; }
.ne-sh a, .ne-sf a, a.ne-sh-announce { text-decoration: none !important; }
.ne-sh-announce:focus-visible,
.ne-sh a:focus-visible, .ne-sh button:focus-visible,
.ne-sf a:focus-visible {
  outline: none;
  box-shadow: var(--sc-focus);
  border-radius: 999px;
}
.ne-sh-i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Arrows are drawn pointing "forward" for RTL; mirror them in LTR. */
.ne-sh-arrow:dir(ltr) { transform: scaleX(-1); }

/* ---------- Announcement bar ---------- */
a.ne-sh-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  margin: 0;
  background: var(--sc-ink);
  color: #F5F3EF !important;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
a.ne-sh-announce:focus-visible { border-radius: 0; box-shadow: inset 0 0 0 3px var(--sc-accent); }
.ne-sh-announce__badge {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sc-accent);
  color: var(--sc-ink);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex: none;
}
.ne-sh-announce .lp-announce__brand { font-family: var(--sc-font-display); font-weight: 700; font-size: 1.15em; letter-spacing: -0.01em; color: var(--sc-accent); margin-inline-end: 4px; unicode-bidi: isolate; }

/* ---------- Header ---------- */
.ne-sh {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0;
  background: rgba(245, 243, 239, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--sc-line);
  color: var(--sc-ink);
  transition: box-shadow 0.2s ease;
}
.ne-sh.is-scrolled { box-shadow: 0 10px 30px -24px rgba(23, 20, 15, 0.5); }
.ne-sh__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  min-height: 76px;
}
.ne-sh__logo { display: flex; align-items: center; gap: 8px; color: var(--sc-ink) !important; flex: none; }
.ne-sh__mark { width: 34px; height: 34px; display: block; max-width: none; }
.ne-sh__word { height: 30px; width: auto; display: block; max-width: none; }
.ne-sh__menu { display: contents; }
.ne-sh__nav {
  flex: 1 1 360px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--sc-ink-2);
}
.ne-sh__link { color: var(--sc-ink-2) !important; transition: color 0.15s; }
.ne-sh__link:hover, .ne-sh__link[aria-current="page"] { color: var(--sc-ink) !important; }
.ne-sh__link[aria-current="page"] { font-weight: 600; }
.ne-sh__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ne-sh__lang {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--sc-line);
  border-radius: 999px;
  background: #FFFFFF;
  font-family: var(--sc-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-ink) !important;
  transition: background 0.15s ease;
}
.ne-sh__lang:hover { background: var(--ne-chip, #F0ECE5); }
.ne-sh__login {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-ink) !important;
}
.ne-sh__login:hover { background: rgba(23, 20, 15, 0.05); }
.ne-sh__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-block: 0;
  padding-inline: 18px 11px;
  border-radius: 999px;
  background: var(--sc-ink);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.ne-sh__cta:hover { background: #2A2620; }
.ne-sh__cta-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sc-accent);
  color: var(--sc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.ne-sh__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--sc-line);
  border-radius: 999px;
  background: #FFFFFF;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ne-sh__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sc-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ne-sh.is-open .ne-sh__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ne-sh.is-open .ne-sh__toggle span:nth-child(2) { opacity: 0; }
.ne-sh.is-open .ne-sh__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .ne-sh__wrap { gap: 12px 16px; min-height: 68px; }
  .ne-sh__toggle { display: inline-flex; }
  .ne-sh__menu {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 10px;
  }
  .ne-sh.is-open .ne-sh__menu { display: flex; }
  .ne-sh__nav { flex: none; flex-direction: column; gap: 0; }
  .ne-sh__link { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--sc-line); }
  .ne-sh__actions { gap: 8px; }
  .ne-sh__cta { margin-inline-start: auto; }
}
@media (max-width: 600px) {
  .ne-sh__wrap { padding-inline: 16px; }
  a.ne-sh-announce { font-size: 13px; gap: 8px; }
}

/* ---------- Footer ---------- */
.ne-sf {
  margin: 0;
  background: var(--sc-ink);
  color: var(--sc-dark-text);
  padding: 64px 0 28px;
}
.ne-sf__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.ne-sf__cols { display: flex; flex-wrap: wrap; gap: 36px 56px; }
.ne-sf__brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 14px; }
.ne-sf__logo { display: flex; align-items: center; gap: 8px; align-self: flex-start; }
.ne-sf__mark { width: 34px; height: 34px; display: block; max-width: none; }
.ne-sf__word { height: 28px; width: auto; display: block; max-width: none; }
.ne-sf__tagline { margin: 0; max-width: 340px; font-size: 14px; line-height: 1.8; color: var(--sc-dark-text); }
.ne-sf__col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; font-size: 14px; }
.ne-sf__title { color: #FFFFFF; font-size: 13px; font-weight: 700; }
.ne-sf__col a { color: var(--sc-dark-text) !important; transition: color 0.15s; align-self: flex-start; }
.ne-sf__col a:hover { color: #FFFFFF !important; }
.ne-sf__num { font-family: var(--sc-font-num); unicode-bidi: isolate; }
.ne-sf__mail { unicode-bidi: isolate; }
.ne-sf__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--sc-dark-line);
  font-size: 13px;
  color: var(--sc-dark-muted);
}
@media (max-width: 600px) {
  .ne-sf { padding-top: 48px; }
  .ne-sf__wrap { padding-inline: 16px; }
}

/* ---------- Footer always reaches the bottom of the window ----------
   Short pages (tracking, 404, legal on large screens) used to leave a strip of the
   old light page colour under the footer. The page is now a full-height column:
   content grows, the footer sits at the bottom, and the page colour is the cream one. */
body:has(> .ne-sf) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ne-bg, #F5F3EF);
}
body:has(> .ne-sf) > .ne-sf { margin-top: auto; }
body:has(> .ne-sf) > :where(main, section, div:not([hidden])) { flex-shrink: 0; }
