/* ==========================================================================
   Nielsen navigation + footer: base
   Load after tokens.css and before navigation.css / footer.css.

   On the Webflow site these rules are global (normalize.css, Webflow's base
   css and the project's reset embed). Here every element-level rule is scoped
   to the navigation and footer with
       :where([data-module="navigation"], [data-module="footer"])
   so nothing in this file can restyle the WordPress theme. :where() adds no
   specificity, so the cascade inside the two components is exactly the same as
   on the Webflow site.
   ========================================================================== */

/* --- 1. What the components inherit from <html>/<body> on the Webflow site.
       Declared on the two roots so they don't depend on the host theme's body.
       The last four lines aren't in Webflow: they stop a theme's inherited
       text settings leaking in. */
:root {
  /* <body>'s fluid font size on the Webflow site. Captured here because the
     navigation pins --spacing--gap to 1rem below 991px, and its inherited
     font size must keep following the page's value, not the pinned one. */
  --nielsen-body-font-size: var(--spacing--gap);
}

:where([data-module="navigation"], [data-module="footer"]) {
  font-family: var(--typography--font-family--sans);
  font-size: var(--nielsen-body-font-size);
  font-weight: 400;
  line-height: 20px;
  color: var(--color--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  interpolate-size: allow-keywords;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  text-align: start;
}

/* --- 2. Reset and shared classes, in Webflow's cascade order
       (normalize.css -> Webflow base -> project css -> project embeds) */
:where([data-module="navigation"], [data-module="footer"]) a {
  background-color: transparent;
}

:where([data-module="navigation"], [data-module="footer"]) a:active,
:where([data-module="navigation"], [data-module="footer"]) a:hover {
  outline: 0;
}

:where([data-module="navigation"], [data-module="footer"]) img {
  border: 0;
}

:where([data-module="navigation"], [data-module="footer"]) svg:not(:root) {
  overflow: hidden;
}

:where([data-module="navigation"], [data-module="footer"]) input {
  color: inherit;
  font: inherit;
  margin: 0;
}

:where([data-module="navigation"], [data-module="footer"]) input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

:where([data-module="navigation"], [data-module="footer"]) input {
  line-height: normal;
}

:where([data-module="navigation"], [data-module="footer"]), :where([data-module="navigation"], [data-module="footer"]) * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

:where([data-module="navigation"], [data-module="footer"]) img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
}

.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.w-embed:before,
.w-embed:after {
  content: " ";
  display: table;
  grid-column-start: 1;
  grid-row-start: 1;
  grid-column-end: 2;
  grid-row-end: 2;
}

.w-embed:after {
  clear: both;
}

.c {
  width: 100%;
  max-width: 95rem;
  padding-right: var(--spacing--container-padding);
  padding-left: var(--spacing--container-padding);
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991px) {
  .c {
    padding-right: var(--spacing--container-padding-t);
    padding-left: var(--spacing--container-padding-t);
  }

}

@media screen and (max-width: 767px) {
  .c {
    padding-left: .75rem;
    padding-right: .75rem;
  }

}

:where([data-module="navigation"], [data-module="footer"]) ::selection {
  background-color: var(--color--text);
  color: var(--color--bg);
  text-shadow: none;
}

:where([data-module="navigation"], [data-module="footer"]) ::-moz-selection {
  background-color: var(--color--text);
  color: var(--color--bg);
  text-shadow: none;
}

:where([data-module="navigation"], [data-module="footer"]) img::selection,
:where([data-module="navigation"], [data-module="footer"]) svg::selection {
  background: transparent;
}

:where([data-module="navigation"], [data-module="footer"]) svg {
  max-width: none;
  height: auto;
  box-sizing: border-box;
  vertical-align: middle;
}

:where([data-module="navigation"], [data-module="footer"]) a {
  color: inherit;
  text-decoration: none;
}

:where([data-module="navigation"], [data-module="footer"]) :where(:focus-visible) {
  outline: 0.1em solid var(--color--focus);
  outline-offset: 0.1em;
}

:where([data-module="navigation"], [data-module="footer"])[tabindex]:focus-visible, :where([data-module="navigation"], [data-module="footer"]) *[tabindex]:focus-visible {
  outline: 0.1em solid var(--color--focus);
  outline-offset: 0.1em;
}

:where([data-module="navigation"], [data-module="footer"]), :where([data-module="navigation"], [data-module="footer"]) *,
:where([data-module="navigation"], [data-module="footer"])::before, :where([data-module="navigation"], [data-module="footer"]) *::before,
:where([data-module="navigation"], [data-module="footer"])::after, :where([data-module="navigation"], [data-module="footer"]) *::after {
  box-sizing: border-box;
  touch-action: manipulation;
  margin: 0;
  padding: 0;
}

/* --- 3. Lenis (smooth scrolling). Only has an effect while Lenis is running:
       it adds these classes to <html>. Locks the page while the menu is open. */
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
  overscroll-behavior: contain;
}

/* --- 4. Global rules from the Webflow site that are NOT applied here, because
       they change the whole page. Read README "Global rules" before enabling.

:root {
  font-size: 100%;                  every size in this package is rem-based:
                                    the root font size must compute to 16px
}
html,
body {
  overscroll-behavior: none;        no rubber-band overscroll, as on Webflow
}
*/
