:root {
  --ifm-color-primary: #2f7cef;
  --ifm-color-primary-dark: #176ce6;
  --ifm-color-primary-darker: #1366da;
  --ifm-color-primary-darkest: #1054b3;
  --ifm-color-primary-light: #4a8df1;
  --ifm-color-primary-lighter: #5896f2;
  --ifm-color-primary-lightest: #82b1f6;
  --ifm-code-font-size: 0.92rem;
  --ifm-heading-font-weight: 520;
  --ifm-navbar-height: 4rem;
  --ifm-border-radius: 8px;
  --gobii-doc-panel-background: #ffffff;
  --gobii-doc-panel-border: #dfe3ea;
  --gobii-doc-muted-border: #e8ebf0;
  --gobii-doc-subtle-active: rgba(47, 124, 239, 0.09);
  --gobii-doc-focus-ring: rgba(47, 124, 239, 0.24);
  --gobii-doc-soft-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

[data-theme='dark'] {
  --ifm-background-color: #090b0f;
  --ifm-background-surface-color: #10141d;
  --ifm-navbar-background-color: #090b0f;
  --ifm-footer-background-color: #090b0f;
  --gobii-doc-panel-background: #11151c;
  --gobii-doc-panel-border: #303846;
  --gobii-doc-muted-border: #242b36;
  --gobii-doc-subtle-active: rgba(47, 124, 239, 0.16);
  --gobii-doc-focus-ring: rgba(82, 146, 255, 0.28);
  --gobii-doc-soft-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(47, 124, 239, 0.2);
}

.navbar {
  border-bottom: 1px solid var(--gobii-doc-muted-border);
  box-shadow: none;
}

.navbar__logo {
  height: 1.75rem;
}

.navbar__logo img {
  object-fit: contain;
}

.navbar__item,
.navbar__link {
  transition: color 140ms ease, opacity 140ms ease;
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--ifm-color-primary);
}

.navbar__items--right .navbar__link {
  opacity: 0.88;
}

.navbar__items--right .navbar__link:hover {
  opacity: 1;
}

.theme-doc-markdown a:not(.button):not(.card) {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.theme-doc-markdown a:not(.button):not(.card):hover {
  text-decoration-thickness: 2px;
}

.theme-doc-markdown :where(code):not(pre code) {
  border: 1px solid var(--gobii-doc-muted-border);
  border-radius: 6px;
  padding: 0.08rem 0.3rem;
}

.theme-doc-markdown {
  max-width: 860px;
}

.theme-doc-markdown :where(h1, h2, h3),
.theme-api-markdown :where(h1, h2, h3),
.markdown :where(h1, h2, h3) {
  font-weight: 520;
  letter-spacing: 0;
}

.theme-doc-markdown h1,
.theme-api-markdown h1 {
  font-weight: 500;
}

.gobii-home {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(2.5rem, 7vw, 5.5rem) 1.25rem 4rem;
}

.gobii-home__hero {
  align-items: end;
  display: grid;
  gap: 2rem;
  min-height: min(58vh, 34rem);
}

.gobii-home__eyebrow {
  color: var(--ifm-color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.gobii-home h1 {
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  max-width: 11ch;
}

.gobii-home__lede {
  color: var(--ifm-color-emphasis-700);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.65;
  margin: 1.4rem 0 0;
  max-width: 44rem;
}

.gobii-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.gobii-home__actions .button {
  border-radius: 8px;
}

.gobii-home__links {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3rem;
}

.gobii-home__link {
  border: 1px solid var(--gobii-doc-muted-border);
  color: inherit;
  min-height: 11rem;
  padding: 1.1rem;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.gobii-home__link:hover {
  background: var(--gobii-doc-subtle-active);
  border-color: color-mix(in srgb, var(--ifm-color-primary) 42%, var(--gobii-doc-muted-border));
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.gobii-home__link span {
  color: var(--ifm-color-primary);
  display: block;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.gobii-home__link p {
  color: var(--ifm-color-emphasis-700);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

@media (min-width: 997px) {
  .container:has(.theme-api-markdown) {
    max-width: none;
  }

  .theme-doc-markdown:has(.theme-api-markdown) {
    max-width: none;
  }

  div[class*='docItemCol']:has(.theme-api-markdown) {
    flex: 0 0 100%;
    max-width: 100% !important;
  }
}

.gobii-doc-card {
  border: 1px solid var(--ifm-color-emphasis-200);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  background: var(--ifm-background-surface-color);
  box-shadow: var(--gobii-doc-soft-shadow);
}

.gobii-doc-card img {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.gobii-doc-screenshot {
  margin: 1.35rem 0 1.6rem;
}

.gobii-doc-screenshot img {
  background: var(--gobii-doc-panel-background);
  border: 1px solid var(--gobii-doc-panel-border);
  border-radius: 8px;
  box-shadow: var(--gobii-doc-soft-shadow);
  display: block;
  height: auto;
  width: 100%;
}

.gobii-doc-screenshot figcaption {
  color: var(--ifm-color-emphasis-700);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 0.55rem;
}

.openapi-tabs__schema-container,
.openapi-explorer__request-form {
  border-radius: 8px;
}

.theme-api-markdown {
  --ifm-heading-margin-top: 1.35rem;
  color: var(--ifm-color-emphasis-800);
}

.theme-api-markdown :focus-visible,
.theme-doc-sidebar-container :focus-visible,
.navbar :focus-visible {
  outline: 2px solid var(--gobii-doc-focus-ring);
  outline-offset: 2px;
}

.theme-api-markdown .openapi__heading {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.7rem !important;
}

.openapi__method-endpoint {
  align-items: center;
  background: var(--gobii-doc-panel-background);
  border: 1px solid var(--gobii-doc-panel-border);
  border-radius: 8px;
  box-shadow: var(--gobii-doc-soft-shadow);
  display: inline-flex;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.62rem 0.72rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.openapi__method-endpoint:hover {
  border-color: color-mix(in srgb, var(--ifm-color-primary) 42%, var(--gobii-doc-panel-border));
}

.openapi__method-endpoint .badge {
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0;
}

.openapi__method-endpoint-path {
  font-size: 0.95rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.openapi-left-panel__container > .openapi__divider:first-of-type {
  margin-top: 1.25rem;
}

.openapi-left-panel__container .openapi__divider {
  border-color: var(--gobii-doc-muted-border);
}

.openapi-left-panel__container details summary {
  cursor: pointer;
}

.openapi-left-panel__container .openapi-tabs__heading {
  font-size: 1.45rem;
  font-weight: 520;
}

.openapi-left-panel__container .openapi-tabs__response-header {
  align-items: center;
  display: flex;
}

.openapi-right-panel__container > * {
  margin-bottom: 1rem;
}

.openapi-security__details,
.openapi-tabs__code-container,
.openapi-explorer__request-form,
.openapi-explorer__response-container {
  background: var(--gobii-doc-panel-background) !important;
  border: 1px solid var(--gobii-doc-panel-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--gobii-doc-soft-shadow) !important;
}

.openapi-security__details {
  font-size: 0.78rem;
}

.openapi-tabs__code-container {
  overflow: hidden;
}

.openapi-tabs__code-list-container {
  flex-wrap: nowrap !important;
  gap: 0.35rem;
  padding: 0.72rem 0.72rem 0.45rem !important;
  scroll-padding-inline: 0.75rem;
}

.openapi-tabs__code-list-container::-webkit-scrollbar {
  height: 6px;
}

.openapi-tabs__code-list-container::-webkit-scrollbar-thumb {
  background: var(--ifm-color-emphasis-300);
  border-radius: 999px;
}

.openapi-tabs__code-item {
  border-radius: 6px !important;
  flex: 0 0 auto;
  height: 2.25rem !important;
  min-width: auto !important;
  padding: 0 0.72rem !important;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  width: auto !important;
}

.openapi-tabs__code-item:hover {
  background: var(--gobii-doc-subtle-active) !important;
}

.openapi-tabs__code-item svg,
.openapi-tabs__code-item img {
  display: none !important;
}

.openapi-tabs__code-item.active {
  background: var(--gobii-doc-subtle-active) !important;
  border-color: var(--ifm-color-primary) !important;
}

.openapi-tabs__code-item span,
.openapi-tabs__code-item {
  font-size: 0.68rem !important;
  letter-spacing: 0 !important;
}

.openapi-tabs__code-container pre {
  max-height: 22rem;
}

.openapi-tabs__code-container pre::-webkit-scrollbar,
.openapi-schema__container::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.openapi-tabs__code-container pre::-webkit-scrollbar-thumb,
.openapi-schema__container::-webkit-scrollbar-thumb {
  background: var(--ifm-color-emphasis-300);
  border-radius: 999px;
}

.openapi-explorer__request-form,
.openapi-explorer__response-container {
  font-size: 0.9rem;
}

.openapi-schema__container {
  gap: 0.35rem;
}

.theme-doc-sidebar-container .menu {
  font-size: 0.92rem;
}

.theme-doc-sidebar-container .menu__link {
  border-radius: 6px;
  line-height: 1.25;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.theme-doc-sidebar-container .menu__link:hover {
  background: var(--gobii-doc-subtle-active);
  transform: translateX(1px);
}

.theme-doc-sidebar-container .menu__link--active {
  background: var(--gobii-doc-subtle-active);
  font-weight: 560;
}

.theme-doc-sidebar-container .menu__link--sublist-caret::after {
  opacity: 0.72;
  transition: opacity 140ms ease, transform 140ms ease;
}

.theme-doc-sidebar-container .menu__link--sublist-caret:hover::after {
  opacity: 1;
}

.theme-doc-sidebar-container .menu__list .menu__list {
  padding-left: 0.75rem;
}

.pagination-nav__link {
  border-radius: 8px;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.pagination-nav__link:hover {
  border-color: var(--ifm-color-primary);
  box-shadow: var(--gobii-doc-soft-shadow);
  transform: translateY(-1px);
}

@media (max-width: 996px) {
  .gobii-home__hero {
    min-height: auto;
  }

  .gobii-home__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar__brand {
    min-width: 0;
  }

  .navbar__logo {
    height: 1.6rem;
  }

  .theme-api-markdown .openapi__heading {
    font-size: 2.35rem;
  }

  .theme-api-markdown {
    margin-left: 0;
    margin-right: 0;
  }

  .openapi-left-panel__container,
  .openapi-right-panel__container {
    padding-left: 0;
    padding-right: 0;
  }

  .openapi-left-panel__container {
    border-right: 0 !important;
  }

  .openapi-right-panel__container {
    margin-top: 2rem;
  }
}

@media (max-width: 640px) {
  .gobii-home__links {
    grid-template-columns: 1fr;
  }
}
