:root {
  --mr-ink: var(--mr-color-ink);
  --mr-copy: var(--mr-color-copy);
  --mr-line: var(--mr-color-line);
  --mr-paper: var(--mr-color-paper);
  --mr-accent: var(--mr-color-primary);
  --mr-accent-dark: var(--mr-color-primary-hover);
  --mr-success: var(--mr-color-success);
}

.mr-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: #fff !important;
  background: #202020;
  border-radius: 8px;
  text-decoration: none;
  font: 500 12px/1.3 "Stolzl Text", Arial, sans-serif;
  transform: translateY(-160%);
}
.mr-skip-link:focus { transform: none; }

.mr-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mr-shell-container {
  width: min(var(--mr-content-max), calc(100% - (var(--mr-shell-gutter) * 2)));
  margin-inline: auto;
}

.mr-site-header {
  position: relative;
  z-index: 80;
  color: var(--mr-ink);
  background: rgba(255, 255, 255, 0.97);
  font-family: var(--mr-font-body);
}

.mr-site-header,
.mr-site-header * {
  box-sizing: border-box;
}

.mr-site-header__inner {
  position: relative;
  height: 96px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
  border-bottom: 1px solid #d9d9d9;
}

.mr-site-brand {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.mr-site-brand img {
  display: block;
  width: 196px;
  height: 44px;
  object-fit: contain;
}

.mr-primary-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 24px;
}

.mr-nav-link,
.mr-nav-group__toggle {
  position: relative;
  width: auto;
  height: 96px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--mr-ink) !important;
  background: transparent;
  border: 0;
  text-decoration: none;
  font-family: var(--mr-font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.mr-nav-link::after,
.mr-nav-group__toggle::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.mr-nav-link:hover::after,
.mr-nav-link:focus-visible::after,
.mr-nav-link.is-current::after,
.mr-nav-group:hover > .mr-nav-group__toggle::after,
.mr-nav-group:focus-within > .mr-nav-group__toggle::after,
.mr-nav-group.is-current > .mr-nav-group__toggle::after,
.mr-nav-group.is-open > .mr-nav-group__toggle::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mr-nav-group { position: relative; }
.mr-nav-group__toggle { gap: 7px; }

.mr-nav-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
  transition: transform 180ms ease;
}

.mr-nav-group.is-open > .mr-nav-group__toggle .mr-nav-chevron,
.mr-nav-group:focus-within > .mr-nav-group__toggle .mr-nav-chevron {
  transform: rotate(180deg);
}

.mr-nav-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: -22px;
  width: 330px;
  display: grid;
  gap: 2px;
  padding: 12px;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  border: 1px solid #e2e3e8;
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(25, 32, 68, 0.13);
  transform: translateY(8px);
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
}

.mr-nav-submenu--compact { width: 220px; }
.mr-nav-group:hover > .mr-nav-submenu,
.mr-nav-group:focus-within > .mr-nav-submenu,
.mr-nav-group.is-open > .mr-nav-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mr-nav-submenu a {
  display: block;
  padding: 11px 12px;
  color: var(--mr-ink) !important;
  border-radius: 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.mr-nav-submenu a:hover,
.mr-nav-submenu a:focus-visible,
.mr-nav-submenu a.is-current { background: #f2f4ff; }
.mr-nav-submenu a b,
.mr-nav-submenu a small { display: block; }
.mr-nav-submenu a b { font-weight: 500; }
.mr-nav-submenu a small { margin-top: 3px; color: #777; font-size: 10px; }

.mr-site-header__actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.mr-language-current {
  width: auto;
  height: 40px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: #606060;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 999px;
  font-family: var(--mr-font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.mr-language-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mr-language-menu {
  right: 0;
  left: auto;
  width: 248px;
}

.mr-language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  color: var(--mr-ink);
  background: #f2f4ff;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.35;
}

.mr-language-option b { font-weight: 500; }
.mr-language-option small { color: var(--mr-accent); font-size: 10px; font-weight: 500; }
.mr-language-note { display: block; padding: 9px 12px 6px; color: #777; font-size: 10px; line-height: 1.5; }

.mr-header-cta {
  width: auto;
  height: 46px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  color: #fff !important;
  background: var(--mr-accent);
  border: 1px solid var(--mr-accent);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}

.mr-header-cta:hover,
.mr-header-cta:focus-visible { background: var(--mr-accent-dark); transform: translateY(-1px); }
.mr-menu-toggle { display: none; }
.mr-mobile-nav-tools { display: none; }

.mr-site-header a:focus-visible,
.mr-site-header button:focus-visible {
  outline: 2px solid var(--mr-accent);
  outline-offset: 3px;
}

.mr-site-footer {
  position: relative;
  z-index: 2;
  padding: 76px 0 30px;
  color: rgba(255, 255, 255, 0.68);
  background: #111;
  font-family: var(--mr-font-body);
}

.mr-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.72fr));
  gap: 56px;
  padding-bottom: 58px;
}

.mr-site-footer__brand img { width: 196px; height: 44px; object-fit: contain; }
.mr-site-footer__brand p { max-width: 350px; margin: 24px 0 0; font-size: 13px; line-height: 1.65; }
.mr-site-footer__brand .mr-site-footer__disclaimer { margin-top: 12px; color: rgba(255,255,255,.46); font-size: 11px; }

.mr-site-footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.mr-site-footer__nav h2 { margin: 3px 0 10px; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.mr-site-footer__nav a { color: rgba(255,255,255,.68) !important; text-decoration: none; font-size: 12px; line-height: 1.4; transition: color 160ms ease; }
.mr-site-footer__nav a:hover,
.mr-site-footer__nav a:focus-visible { color: #fff !important; }

.mr-site-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 11px;
}
.mr-site-footer__bottom p { margin: 0; }
.mr-site-footer__bottom p:nth-child(2) { justify-self: center; }
.mr-site-footer__bottom a { justify-self: end; color: #fff !important; text-decoration: none; }

.mr-page-placeholder {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 96px 0;
  color: var(--mr-ink);
  background: radial-gradient(circle at 50% 55%, rgba(71,89,245,.06), transparent 35%), #fff;
  font-family: var(--mr-font-body);
}
.mr-page-placeholder__content { max-width: 820px; margin-inline: auto; text-align: center; }
.mr-page-placeholder__eyebrow { margin: 0 0 18px; color: #555; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.mr-page-placeholder h1 { margin: 0; font-size: clamp(38px, 4.4vw, 64px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.mr-page-placeholder__text { max-width: 650px; margin: 24px auto 0; color: var(--mr-copy); font-size: 17px; line-height: 1.65; }
.mr-page-placeholder__back { display: inline-flex; margin-top: 28px; padding: 13px 22px; color: var(--mr-ink) !important; border: 1px solid var(--mr-ink); border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 500; }

@media (max-width: 1180px) {
  .mr-site-header__inner { column-gap: 24px; }
  .mr-primary-nav { gap: 15px; }
  .mr-nav-link,
  .mr-nav-group__toggle { font-size: 12px; }
  .mr-site-brand img { width: 174px; }
  .mr-language-current { min-width: 64px; padding-inline: 8px; }
  .mr-language-icon { display: none; }
  .mr-header-cta { padding-inline: 16px; font-size: 12px; }
}

@media (max-width: 1024px) {
  html.mr-menu-open,
  html.mr-menu-open body { overflow: hidden; }

  .mr-site-header__inner { height: 80px; grid-template-columns: 1fr auto; column-gap: 20px; }
  .mr-site-brand { grid-column: 1; justify-self: start; }
  .mr-site-brand img { width: 182px; height: 40px; }
  .mr-site-header__actions { display: none; }
  .mr-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    margin: 0;
    padding: 0 0 0 12px;
    color: var(--mr-ink);
    background: transparent;
    border: 0;
    font-family: var(--mr-font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
  }

  .mr-menu-toggle__icon {
    position: relative;
    width: 22px;
    height: 14px;
    display: block;
  }
  .mr-menu-toggle__icon::before,
  .mr-menu-toggle__icon::after,
  .mr-menu-toggle__icon i {
    content: "";
    position: absolute;
    right: 0;
    width: 22px;
    height: 1.5px;
    display: block;
    background: currentColor;
    border-radius: 999px;
    transition: top 180ms ease, transform 180ms ease, opacity 120ms ease;
  }
  .mr-menu-toggle__icon::before { top: 0; }
  .mr-menu-toggle__icon i { top: 6px; width: 16px; }
  .mr-menu-toggle__icon::after { top: 12px; }
  .mr-menu-toggle[aria-expanded="true"] .mr-menu-toggle__icon::before { top: 6px; transform: rotate(45deg); }
  .mr-menu-toggle[aria-expanded="true"] .mr-menu-toggle__icon i { opacity: 0; }
  .mr-menu-toggle[aria-expanded="true"] .mr-menu-toggle__icon::after { top: 6px; transform: rotate(-45deg); }

  .mr-primary-nav {
    position: absolute;
    top: 100%;
    right: auto;
    left: 50%;
    width: 100vw;
    grid-column: auto;
    grid-row: auto;
    display: none;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px max(24px, calc((100vw - 1240px) / 2 + 24px)) 24px;
    overflow: auto;
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 24px 52px rgba(20, 24, 45, .1);
    transform: translateX(-50%);
  }
  .mr-primary-nav.is-open { display: flex; }
  .mr-nav-link,
  .mr-nav-group__toggle {
    width: 100%;
    height: 56px;
    min-height: 0;
    justify-content: space-between;
    border-bottom: 1px solid #ececec;
    font-size: 14px;
    line-height: 1.2;
  }
  .mr-nav-link::after,
  .mr-nav-group__toggle::after { display: none; }
  .mr-nav-submenu,
  .mr-nav-submenu--compact {
    position: static;
    width: 100%;
    display: none;
    gap: 2px;
    padding: 8px 0 14px 14px;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .mr-nav-group:hover > .mr-nav-submenu { display: none; }
  .mr-nav-group.is-open > .mr-nav-submenu { display: grid; }
  .mr-nav-submenu a { padding: 11px 12px; font-size: 13px; }

  .mr-mobile-nav-tools {
    display: grid;
    gap: 16px;
    padding-top: 22px;
  }
  .mr-mobile-language {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    color: #777;
    font-size: 12px;
  }
  .mr-mobile-language strong { color: var(--mr-ink); font-size: 13px; font-weight: 500; }
  .mr-header-cta--mobile { width: 100%; height: 50px; }

  .mr-site-footer__grid { grid-template-columns: 1.25fr 1fr 1fr; gap: 42px; }
  .mr-site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .mr-shell-container { width: min(calc(100% - 32px), var(--mr-content-max)); }
  .mr-site-header__inner { height: 76px; }
  .mr-site-brand img { width: 166px; height: 36px; }
  .mr-menu-toggle__label { display: none; }
  .mr-primary-nav {
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    padding-inline: 16px;
  }
  .mr-site-footer { padding-top: 58px; }
  .mr-site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-bottom: 44px; }
  .mr-site-footer__brand { grid-column: 1 / -1; }
  .mr-site-footer__nav:last-child { grid-column: 1 / -1; }
  .mr-site-footer__bottom { grid-template-columns: 1fr auto; }
  .mr-site-footer__bottom p:nth-child(2) { display: none; }
  .mr-page-placeholder { min-height: 520px; padding: 72px 0; }
  .mr-page-placeholder h1 { font-size: clamp(34px, 10vw, 44px); }
  .mr-page-placeholder__text { font-size: 15px; }
}

@media (max-width: 390px) {
  .mr-site-footer__grid { grid-template-columns: 1fr; }
  .mr-site-footer__brand,
  .mr-site-footer__nav:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mr-site-header *,
  .mr-site-footer * { transition-duration: .01ms !important; }
}

/* Language switcher: the non-current language is a link */
a.mr-language-option { text-decoration: none; background: transparent; }
a.mr-language-option:hover, a.mr-language-option:focus-visible { background: #f2f4ff; }
a.mr-mobile-language { text-decoration: none; }

/* German/Spanish: long words are long, so allow hyphenation and, as a fallback, breaking inside a word */
html:is([lang="de"], [lang="es"], [lang="pl"]) :is(h1, h2, h3, h4, p, li, a, span, b, strong, small, dt, dd, figcaption, button, summary) {
  hyphens: auto;
  overflow-wrap: anywhere;
}
