@import url("https://fonts.googleapis.com/css2?family=Sorts+Mill+Goudy:ital@0;1&display=swap");

.service-header {
  color: var(--nav-ink, #ffffff);
  background: var(--nav, #0b0c0c);
  border-bottom: 4px solid var(--amber, #ffdd00);
}

.width-container {
  width: min(calc(100% - 32px), var(--max, 1120px));
  margin: 0 auto;
}

.wide-container {
  width: min(calc(100% - 32px), var(--wide, 1480px));
  margin: 0 auto;
}

.service-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 10px 0 8px;
}

.service-header__inner > nav {
  margin-left: auto;
}

.brand {
  display: inline-flex;
  min-height: 38px;
  min-width: 0;
  align-items: center;
  color: var(--nav-ink, #ffffff);
  border-bottom: 4px solid transparent;
  text-decoration: none;
}

.service-header a,
.service-header a:visited,
.service-header a:hover,
.service-header a:focus-visible,
.service-header a:active {
  color: var(--nav-ink, #ffffff);
  text-decoration: none;
}

.service-header .brand:visited {
  color: var(--nav-ink, #ffffff);
}

.service-header .brand:hover,
.service-header .brand:focus-visible {
  color: var(--nav-ink, #ffffff);
  border-color: var(--amber, #ffdd00);
  text-decoration: none;
}

.service-header .legipro-user-menu__panel,
.service-header .legipro-user-menu__panel * {
  color: var(--ink, #0b0c0c);
}

.service-header .legipro-user-menu__list a,
.service-header .legipro-user-menu__list a:visited,
.service-header .legipro-user-menu__list a:hover,
.service-header .legipro-user-menu__list a:focus-visible,
.service-header .legipro-user-menu__list a:active {
  color: var(--blue, #1d70b8);
}

.service-header .legipro-user-menu__list button,
.service-header .legipro-user-menu__meta {
  color: var(--muted, #505a5f);
}

.service-header .legipro-user-menu__list a::after {
  color: var(--ink, #0b0c0c);
}

.brand__text {
  display: grid;
}

.brand__name {
  font-family: var(--brand-font, "Sorts Mill Goudy", Georgia, serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.service-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--nav-ink, #ffffff);
  border-bottom: 4px solid transparent;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.service-nav a[aria-current="page"],
.service-nav a:hover {
  border-color: var(--amber, #ffdd00);
}

.header-export {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--nav-ink, #ffffff);
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 0;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.header-export:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header-export svg {
  width: 1.08em;
  height: 1.08em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.system-banner {
  display: none;
}

.system-banner:not([hidden]):not(:empty) {
  display: block;
  width: min(calc(100% - 32px), var(--wide, 1480px));
  margin: 0 auto;
  padding: 8px 0;
  color: var(--muted, #505a5f);
  background: var(--surface, #ffffff);
  border-bottom: 1px solid var(--line, #b1b4b6);
  font-size: 16px;
}

@media (min-width: 901px) {
  .service-header {
    min-height: 60px;
  }

  .service-header__inner {
    min-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 900px) {
  .service-header__inner {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 14px;
  }

  .service-header__inner nav {
    margin-left: 0;
    width: 100%;
    order: 3;
  }

  .service-nav {
    border-top: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 0;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .service-nav li {
    flex: 0 0 auto;
  }

  .service-nav::-webkit-scrollbar {
    display: none;
  }

  .service-nav__api-item {
    display: none;
  }

  .service-nav a {
    justify-content: flex-start;
    min-height: 34px;
    padding: 0 8px;
    font-size: 17px;
    width: auto;
  }

  .brand__name {
    font-size: 28px;
  }

  .header-export {
    display: none;
  }
}

body[data-page="assistant"] .service-header,
body[data-page="sources"] .service-header,
body[data-page="scenarios"] .service-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(11, 12, 12, 0.88);
  backdrop-filter: blur(18px);
}

body[data-page="assistant"] .io-stage,
body[data-page="sources"] .io-stage,
body[data-page="scenarios"] .io-stage {
  min-height: calc(100svh - 74px);
  padding-top: 52px;
}

@media (max-width: 760px) {
  body[data-page="assistant"] .io-stage,
  body[data-page="sources"] .io-stage,
  body[data-page="scenarios"] .io-stage {
    min-height: calc(100svh - 92px);
    padding-top: 112px;
  }
}
