/* v6 chrome — tokens from DESIGN_THEME.md. Do not use logo green #abcd03 as UI primary. */

.ysgo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ysgo-line);
}

.ysgo-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  min-width: 0;
}

.ysgo-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  color: var(--ysgo-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ysgo-brand:hover {
  color: var(--ysgo-ink);
}

.ysgo-brand img,
.ysgo-brand__img {
  display: block;
  width: 102px;
  height: auto;
  object-fit: contain;
}

.ysgo-nav {
  display: flex;
  align-items: center;
}

.ysgo-nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}

.ysgo-nav__item {
  position: relative;
}

.ysgo-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ysgo-muted);
  font: inherit;
  cursor: pointer;
}

.ysgo-nav__link:hover {
  color: var(--ysgo-primary);
  text-decoration: underline;
  text-decoration-color: var(--ysgo-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.ysgo-nav__link--hold,
.ysgo-nav__link.ysgo-nav__link--hold:hover {
  color: var(--ysgo-muted);
  cursor: default;
  text-decoration: none;
  border-bottom: 1px dashed var(--ysgo-line);
  opacity: 0.72;
}

.ysgo-nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  /* right-align: left:0 + min-width:260px overflowed ~67px at 1440 while hidden */
  left: auto;
  right: 0;
  min-width: 260px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--ysgo-surface);
  border: 1px solid var(--ysgo-line);
  border-radius: var(--ysgo-radius-card);
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.10);
  display: none;
  pointer-events: none;
}

.ysgo-nav__item--has-children:hover .ysgo-nav__sub,
.ysgo-nav__item--has-children:focus-within .ysgo-nav__sub {
  display: block;
  pointer-events: auto;
}

.ysgo-nav__sub-link {
  display: block;
  padding: 9px 18px;
  color: var(--ysgo-ink);
  font-size: 14.5px;
  font-weight: 500;
}

.ysgo-nav__sub-link:hover {
  color: var(--ysgo-primary);
}

.ysgo-header__cta {
  flex-shrink: 0;
}

.ysgo-nav__cta {
  display: none;
}

.ysgo-menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--ysgo-surface);
  border: 1.5px solid var(--ysgo-line);
  border-radius: 8px;
  padding: 9px 15px;
  font: 600 14px var(--ysgo-sans);
  color: var(--ysgo-ink);
  cursor: pointer;
}

.ysgo-footer {
  position: relative;
  background: var(--ysgo-bg);
  border-top: 1px solid var(--ysgo-line);
  padding: 60px 0 34px;
}

.ysgo-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24px;
  background: linear-gradient(to bottom, rgba(23, 32, 51, 0.07), transparent);
  pointer-events: none;
}

.ysgo-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.ysgo-footer__grid--2 {
  grid-template-columns: 1.6fr 1fr;
}

.ysgo-footer__brand .ysgo-brand img,
.ysgo-footer__brand .ysgo-brand__img {
  width: 94px;
  height: auto;
  margin-bottom: 16px;
}

.ysgo-footer__blurb {
  margin: 0 0 4px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ysgo-muted);
}

.ysgo-footer__heading {
  font-family: var(--ysgo-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ysgo-muted);
  margin-bottom: 15px;
}

.ysgo-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ysgo-footer__links a {
  display: block;
  font-size: 15px;
  padding: 5px 0;
  color: var(--ysgo-ink);
}

.ysgo-footer__links a:hover {
  color: var(--ysgo-primary);
}

.ysgo-footer__contact {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ysgo-footer__contact li {
  font-size: 14.5px;
  color: var(--ysgo-muted);
  padding: 4px 0;
}

.ysgo-footer__contact a {
  color: var(--ysgo-muted);
}

.ysgo-footer__contact a:hover {
  color: var(--ysgo-primary);
}

.ysgo-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ysgo-langs__item {
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  color: var(--ysgo-muted);
  border: 1px solid var(--ysgo-line);
  border-radius: var(--ysgo-radius-pill);
  padding: 6px 12px;
  background: transparent;
}

.ysgo-langs__item--on,
.ysgo-langs__item.is-on {
  background: var(--ysgo-primary);
  border-color: var(--ysgo-primary);
  color: #fff;
}

.ysgo-footer__legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--ysgo-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ysgo-muted);
}

@media (max-width: 1080px) {
  /* Pull the nav wrapper out of the 76px flex row so the bar is logo | CTA | Menu. */
  .ysgo-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: auto;
    height: 0;
  }

  .ysgo-nav__list {
    display: none;
  }

  .ysgo-menu-toggle {
    display: flex;
  }

  .ysgo-header.is-open .ysgo-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    z-index: 40;
    background: var(--ysgo-surface);
    padding: 16px 24px 22px;
    border-bottom: 1px solid var(--ysgo-line);
  }

  .ysgo-header.is-open .ysgo-nav__link {
    padding: 9px 0;
    font-size: 17px;
    color: var(--ysgo-ink);
  }

  .ysgo-header.is-open .ysgo-nav__link:hover {
    color: var(--ysgo-primary);
  }

  .ysgo-header.is-open .ysgo-nav__link--hold,
  .ysgo-header.is-open .ysgo-nav__link--hold:hover {
    color: var(--ysgo-muted);
    text-decoration: none;
    cursor: default;
  }

  .ysgo-nav__sub {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .ysgo-nav__item--has-children.is-open .ysgo-nav__sub {
    display: block;
  }

  .ysgo-footer__grid,
  .ysgo-footer__grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .ysgo-header__cta {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ysgo-header.is-open .ysgo-nav__cta {
    display: block;
    padding: 12px 0 4px;
  }

  .ysgo-footer__grid,
  .ysgo-footer__grid--2 {
    grid-template-columns: 1fr;
  }
}
