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

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

body {
  background: #ffffff;
  color: #111111;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

#page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
   min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

#topbar,
#main,
#footer {
  width: 100%;
  box-sizing: border-box;
}

#topbar {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 0px solid #ececec;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  background: #ffffff;
}

.open-logo {
  justify-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.open-logo-top {
  font-size: 10px;
  font-weight: 400;
  color: #9b9b9b;
  line-height: 1;
  letter-spacing: 0.45em;
  margin-bottom: 4px;
  padding: 0;
  text-indent: 0.45em;
  white-space: nowrap;
}

.open-logo-main {
  display: inline-block;
  background: #e6e6e6;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 0.86;
  text-align: center;
  padding: 5px 7px 4px;
  white-space: nowrap;
}

.menu-toggle {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #111111;
}

.menu-toggle:hover {
  background: #f7f7f7;
}

.open-share {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #737373;
  cursor: pointer;
}

.open-share:hover {
  background: #f4f4f4;
}

.open-share:active {
  color: #111111;
  transform: translateY(1px);
}

.open-share svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.open-share-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 13000;
  max-width: min(320px, calc(100vw - 36px));
  padding: 11px 15px;
  border-radius: 7px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.open-share-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#main {
  flex: 1;
  padding: 15px 16px 40px;
  background: #ffffff;
}

.open-page {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.open-page h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

#footer {
  border-top: 1px solid #ececec;
  background: #ffffff;
}

.footer-inner {
  padding: 16px;
  display: flex;
  justify-content: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.5;
  color: #777777;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* MENU */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  z-index: 11900;
  transition: opacity 0.25s ease;
}

.menu-panel {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  max-width: 82vw;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e5e5e5;
  box-shadow: 10px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 12000;
  transition: left 0.25s ease;
  overflow-y: auto;
  padding: 28px 20px 24px;
}

body.menu-open .menu-panel {
  left: 0;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-nav a {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.menu-nav a:hover,
.menu-nav a.is-active {
  background: #f5f5f5;
}

.menu-nav a.is-active {
  font-weight: 700;
}

/* MOBILE */

@media (max-width: 640px) {
  .topbar-inner {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    min-height: 48px;
    padding: 0 12px;
  }

  .menu-toggle {
    justify-self: start;
  }

  .open-share {
    justify-self: end;
  }

  #main {
    padding: 5px 10px 32px;
  }

  .open-page {
    max-width: 350px;
  }

  .open-logo-top {
    font-size: 8px;
    
    letter-spacing: 0.38em;
    text-indent: 0.38em;
  }

  .open-logo-main {
    font-size: 15px;
    padding: 4px 7px 4px 7px;
  }

  .menu-panel {
    width: 280px;
    max-width: 86vw;
    padding: 20px 16px;
  }

  .open-page h1 {
    font-size: 28px;
  }
}
.footer-separator {
  color: #bdbdbd;
}

.footer-links a.is-active {
  color: #111111;
  font-weight: 600;
}



/* HERO */

.hero {
  width: 100%;
  max-width: 460px;

  margin: 40px auto 0;

  text-align: left;
}

.hero-title {
  margin: 0 0 34px;

  font-size: 55px;
  line-height: 0.9;
  font-weight: 900;

  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.hero-text {
  margin: 0 0 42px;

  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;

  letter-spacing: -0.03em;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-input {
  width: 100%;
  height: 86px;

  padding: 0 28px;

  border: 1px solid #dddddd;
  border-radius: 28px;

  background: #ffffff;

  font-size: 16px;
  font-weight: 500;

  outline: none;
}

.hero-input::placeholder {
  color: #8f8f8f;
}

.hero-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 86px;

  border: none;
  border-radius: 28px;

  background: #000000;
  color: #ffffff;

  font-size: 18px;
  font-weight: 800;

  letter-spacing: -0.03em;

  cursor: pointer;

  text-align: center;
  text-decoration: none;
}


.hero-outline-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 74px;

  margin: 0 0 28px;

  border: 1px solid rgba(0,0,0,.14);
  border-radius: 20px;

  background: #ffffff;
  color: #111111;

  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;

  text-align: center;
  text-decoration: none;

  cursor: pointer;
}

.hero-not-found-text {
  margin-top: 4px;
}



/* MOBILE */

@media (max-width: 640px) {

  .hero {
    max-width: 340px;
    margin-top: 33px;
  }

  .hero-title {
    margin-bottom: 28px;

    font-size: 42px;
    line-height: 0.92;
  }

  .hero-text {
    margin-bottom: 34px;

    font-size: 16px;
    line-height: 1.45;
  }

  .hero-input,
  .hero-button {
    height: 74px;

    border-radius: 24px;
  }

}


/* STATIC PAGE: desktop and mobile widths live only in CSS. */
.open-doc {
  --open-static-width: 600px;

  width: 100%;
  max-width: var(--open-static-width);
  margin: 0 auto;
}

.open-doc-section {
  margin: 0;
}

.open-doc h1 {
  margin: 0 0 36px;
  font-size: 40px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.open-doc h2 {
  margin: 38px 0 14px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.open-doc h3 {
  margin: 30px 0 12px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
}

.open-doc p,
.open-doc li {
  font-size: 16px;
  line-height: 1.72;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.open-doc p {
  margin: 0 0 16px;
}

.open-doc ul,
.open-doc ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.open-doc li {
  margin-bottom: 10px;
}

.open-doc hr {
  margin: 46px 0;
  border: 0;
  border-top: 1px solid #e5e5e5;
}

.open-doc a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.open-doc strong {
  font-weight: 800;
}

.open-doc > .open-doc-section > :first-child {
  margin-top: 0;
}

.open-doc > .open-doc-section > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .open-doc {
    --open-static-width: 100%;
    padding-left: 8px;
    padding-right: 4px;
  }

  .open-doc h1 {
    margin-bottom: 30px;
    font-size: 30px;
    line-height: 1.02;
  }

  .open-doc h2 {
    margin-top: 34px;
    font-size: 18px;
  }

  .open-doc p,
  .open-doc li {
    font-size: 15px;
    line-height: 1.68;
  }

  .open-doc hr {
    margin: 38px 0;
  }
}


.footer-login-link {
  display: inline-block;

  padding: 2px 8px;

  border-radius: 6px;

  background: #f5f5f5;
  border: 0px solid #e8e8e8;

  color: #111111;
}


.hero-select {
  appearance: none;
  cursor: pointer;
}

.hero-field {
  display: block;
  position: relative;
}

.hero-field-label {
  display: block;
  margin: 0 0 8px 8px;

  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;

  color: rgba(0,0,0,.42);
}

.hero-select {
  appearance: none;
  cursor: pointer;

  padding-right: 64px;
}

.hero-field::after {
  content: "↓";

  position: absolute;
  right: 28px;
  bottom: 31px;

  font-size: 22px;
  line-height: 1;
  font-weight: 700;

  color: rgba(0,0,0,.35);

  pointer-events: none;
}
.footer-login-row {
  width: 100%;
  text-align: center;
  margin-top: 2px;
}


/* Shared technical 404 page. Intentionally English for every SITE. */
.open-system-page {
  width: 100%;
  padding: 88px 24px 120px;
}

.open-system-page__content {
  width: min(600px, 100%);
  margin: 0 auto;
}

.open-system-page h1 {
  margin: 0 0 24px;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 800;
}

.open-system-page p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.6;
}

.open-system-page__link {
  display: inline-block;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .open-system-page {
    padding: 56px 16px 84px;
  }

  .open-system-page h1 {
    font-size: 30px;
  }

  .open-system-page p {
    font-size: 15px;
  }
}


/* TWO-LEVEL OPEN MENU */
.menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-root-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 4px;
}

.menu-root-link,
.menu-root-label,
.menu-child-label {
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.menu-root-label,
.menu-child-label {
  cursor: default;
}

.menu-submenu-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.menu-submenu-toggle:hover {
  background: #f5f5f5;
}

.menu-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
}

.menu-submenu[hidden] {
  display: none;
}

.menu-submenu a,
.menu-submenu .menu-child-label {
  padding: 10px 12px;
  font-size: 14px;
}

/* COLLAPSIBLE SECOND-LEVEL MENU */
.menu-root-disclosure {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 4px;
  padding: 0 0 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-root-disclosure > span:first-child {
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.menu-disclosure-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
}

.menu-root-disclosure:hover,
.menu-root-disclosure:focus-visible,
.menu-submenu-toggle:focus-visible {
  background: #f5f5f5;
  outline: none;
}

.menu-submenu {
  padding-left: 10px;
}

.menu-submenu a.is-active {
  background: #f5f5f5;
  font-weight: 700;
}

/* A parent used only as a disclosure is never highlighted as an active link. */
.menu-root-label,
.menu-root-disclosure {
  background: transparent;
}
