/*
 * Base layer — our replacement for the Webflow base/component stylesheet.
 *
 * Written from the computed styles of the original site (measured per element, with and without
 * Webflow's base layer), covering only what these pages use. Class names stay the same because
 * the markup and site.css (the site's own design) use them.
 *
 * Load order: normalize.css → base.css → site.css (design) → additions.css
 */

/* ---------------------------------------------------------------- document */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
}

img {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

p {
  margin-top: 0;
}

button {
  border: 0;
}

/* ---------------------------------------------------------------- small helpers in the markup */

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

.w-button {
  display: inline-block;
}

/* Code embeds contain their floats. */
.w-embed::before,
.w-embed::after {
  content: ' ';
  display: table;
  grid-area: 1 / 1 / 2 / 2;
}

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

/* CMS bindings: hidden when a condition fails or a field is empty. */
.w-condition-invisible,
.w-dyn-bind-empty {
  display: none !important;
}

.w-dyn-empty {
  padding: 10px;
}

.w-form {
  margin: 0 0 15px;
}

/* ---------------------------------------------------------------- rich text */

.w-richtext::before,
.w-richtext::after {
  content: ' ';
  display: table;
  grid-area: 1 / 1 / 2 / 2;
}

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

.w-richtext figure {
  position: relative;
  max-width: 60%;
}

/* No inline gap below the image inside a figure. */
.w-richtext figure > div {
  font-size: 0;
  line-height: 0;
}

/* Lists contain their items' margins and don't run underneath a floated figure. */
.w-richtext ul,
.w-richtext ol {
  overflow: hidden;
}

.w-richtext figure img {
  width: 100%;
}

.w-richtext figure.w-richtext-align-normal {
  clear: both;
}

.w-richtext figure.w-richtext-align-center {
  display: table;
  clear: both;
  margin-left: auto;
  margin-right: auto;
}

.w-richtext figure.w-richtext-align-floatleft {
  display: table;
  float: left;
  margin-right: 15px;
  clear: none;
}

.w-richtext figure.w-richtext-align-floatright {
  display: table;
  float: right;
  margin-left: 15px;
  margin-right: 0;
  clear: none;
}

.w-richtext figure.w-richtext-align-fullwidth {
  display: block;
  width: 100%;
  max-width: none;
  text-align: center;
  clear: both;
}

.w-richtext figure.w-richtext-align-center > div,
.w-richtext figure.w-richtext-align-floatleft > div,
.w-richtext figure.w-richtext-align-floatright > div {
  display: inline-block;
}

.w-richtext figcaption {
  margin-top: 5px;
  display: table-caption;
  caption-side: bottom;
  text-align: center;
}

/* ---------------------------------------------------------------- navbar (.w-nav, see runtime.js) */

.w-nav {
  position: relative;
  z-index: 1000;
}

.w-nav-menu {
  position: relative;
  float: right;
}

.w-nav-link {
  position: relative;
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
}

.w-nav-button {
  position: relative;
  display: none;
  float: right;
  font-size: 24px;
  line-height: 36px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* The collapsed menu is moved into this overlay while open (runtime.js). */
.w-nav-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
}

.w-nav-overlay [data-nav-menu-open] {
  top: 0;
}

.w-nav [data-nav-menu-open] {
  display: block;
  min-width: 200px;
}

.w-nav-link.w--nav-link-open {
  display: block;
  position: relative;
}

@media screen and (max-width: 991px) {
  .w-nav[data-collapse='medium'] .w-nav-menu {
    display: none;
  }

  .w-nav[data-collapse='medium'] .w-nav-button {
    display: block;
  }

  .w-nav[data-collapse='medium'] .w-nav-overlay [data-nav-menu-open] {
    display: block;
  }
}

/* ---------------------------------------------------------------- video lightbox (see runtime.js) */

.w-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  font: 300 17px/1.2 system-ui, sans-serif;
  outline: 0;
}

.w-lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.w-lightbox-view,
.w-lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.w-lightbox-figure {
  position: relative;
  margin: 0;
}

.w-lightbox-embed {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  border: 0;
  background: #000;
}

/* Close button: two crossed bars, top right. */
.w-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.w-lightbox-close::before,
.w-lightbox-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.w-lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.w-lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.w-lightbox-close:hover,
.w-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}
