@font-face {
  font-family: Newsreader;
  src: url("/assets/newsreader-latin-optical-D4fu1frN.woff2") format("woff2");
  font-style: normal;
  font-weight: 465;
  font-display: swap;
}

@font-face {
  font-family: "Models Geist";
  src: url("/assets/geist-latin-variable-BGnTDqni.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono-latin-BCiuQ2Xg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.models-content {
  --models-link: #5385ff;
  --models-rule: rgb(255 255 255 / 26%);
  --models-mono: "Geist Mono", ui-monospace, monospace;
  background: #000;
  color: #fff;
  color-scheme: dark;
  padding: 48px clamp(20px, 8vw, 96px) 72px;
  font: 400 16px/24px "Models Geist", sans-serif;
  overflow-wrap: anywhere;
}

.models-content-inner {
  display: grid;
  max-width: 1008px;
  margin-inline: auto;
}

.models-content :is(h2, h3, h4) {
  margin: 0;
  font: 465 26px/32px Newsreader, Georgia, serif;
}

.models-content :where(p, ul, ol, blockquote, pre, figure) { margin: 0; }
.models-content a { color: var(--models-link); text-decoration: none; }
.models-content a:hover { text-decoration: underline; }
.models-content :is(a, button, pre):focus-visible { outline: 2px solid var(--models-link); outline-offset: 3px; }
.models-content code { font-family: var(--models-mono); }
.models-subtitle {
  color: #a9aab8;
  font: 400 16px/24px "Models Geist", "Noto Sans SC", "PingFang SC", sans-serif;
  text-align: center;
}
.models-content .models-subtitle a { color: inherit; }
.models-prose :not(pre) > code { color: var(--models-link); }
.models-prose { min-width: 0; }
.models-prose > * + * { margin-top: 16px; }
.models-prose > :is(h2, h3, h4) + * { margin-top: 10px; }
.models-prose img { max-width: 100%; height: auto; }
.models-prose ul { list-style: none; padding-inline-start: 24px; }
.models-prose ul > li { position: relative; }
.models-prose ul > li::before {
  position: absolute;
  inset: 0 auto auto -24px;
  width: 12px;
  height: 16px;
  background: url("/assets/editorial-bullet-COQyFW_p.svg") center / contain no-repeat;
  content: "";
}
.models-prose li + li { margin-top: 12px; }
.models-prose ol { padding-inline-start: 24px; }
.models-prose pre { overflow-x: auto; white-space: pre; }
.models-prose table { width: 100%; border-collapse: collapse; }
.models-prose :is(td, th) { padding: 6px; border: 1px solid var(--models-rule); }

.models-section { display: grid; gap: 24px; }
.models-section-above, .models-footnotes, .models-code { width: 100%; max-width: 1000px; }
.models-section-side {
  grid-template-columns: minmax(0, 236fr) minmax(0, 736fr);
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--models-rule);
  font-size: 17px;
  line-height: 28px;
}
.models-section-side > h2 { font-size: 36px; line-height: 40px; }
.models-section-content { display: grid; gap: 22px; min-width: 0; }
.models-section-above .models-prose + .models-examples { margin-top: 30px; }
.models-section-above:has(.models-examples) { padding-block: 8px 4px; }

.models-footnotes { display: grid; gap: 24px; }
.models-footnotes .models-prose > p + p { margin-top: 24px; }

.models-resource-links { display: flex; flex-wrap: wrap; gap: 12px; }
.models-resource-links a {
  padding: 10px 17px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 5px;
  color: #fff;
  font: 500 14px/24px "Models Geist", sans-serif;
}
.models-resource-links a:hover { background: #202020; text-decoration: none; }

.models-content .models-figure {
  display: grid;
  gap: 14px;
}
.models-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.models-figure figcaption { font: 500 13px/20px "Models Geist", sans-serif; text-align: center; }

.models-examples { min-width: 0; }
.models-example-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-inline: auto;
  padding: 4px 3px 4px 5px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 8px;
  max-width: 632px;
  min-height: 48px;
}
.models-examples[data-count="4"] .models-example-tabs { grid-template-columns: 115fr 188fr 152fr 167fr; }
.models-example-tabs button {
  position: relative;
  min-height: 38px;
  padding: 4px 8px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: 500 14px/20px "Models Geist", sans-serif;
  cursor: pointer;
}
.models-example-tabs button:hover { background: #191919; }
.models-example-tabs button[aria-selected="true"] { background: #303030; }
.models-example-tabs button[aria-selected="true"]::after {
  position: absolute;
  inset: auto 0 2px;
  width: 35px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  content: "";
}
.models-example-panel > .models-prose { margin-top: 22px; }

.models-code {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--models-rule);
  border-radius: 6px;
  background: #0b0b0b;
}
.models-code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px 10px;
  background: #191919;
  font: 600 14px/21px "Models Geist", sans-serif;
}
.models-code-toolbar > div { display: flex; align-items: center; gap: 6px; }
.models-code-toolbar button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.models-code-toolbar button:hover { background: #303030; }
.models-code pre { padding: 21px 24px 23px; overflow-x: auto; font: 400 14px/22px var(--models-mono); white-space: pre; }
.models-code-keyword { color: #5bc4d8; }
.models-code-value { color: #f88b9b; }

@media (max-width: 680px) {
  .models-section-side { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .models-section-side > h2 { font-size: 26px; line-height: 32px; }
  .models-example-tabs, .models-examples[data-count="4"] .models-example-tabs {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.models-content-inner > * + * { margin-block-start: 49px; }
.models-content-inner > .models-prose + .models-code { margin-block-start: 22px; }
.models-content-inner > .models-subtitle + * { margin-block-start: clamp(20px, 3vw, 32px); }
.public-modeles-hero:has(+ .models-content > .models-content-inner > .models-subtitle:first-child) {
  padding-block-end: 0;
}
.public-modeles-hero + .models-content:has(> .models-content-inner > .models-subtitle:first-child) {
  padding-block-start: clamp(16px, 2.5vw, 28px);
}

.models-image-text {
  display: grid;
  grid-template-columns: minmax(0, 486fr) minmax(0, 430fr);
  align-items: center;
  gap: clamp(28px, 8.1vw, 92px);
}
.models-image-text > img { display: block; width: 100%; height: auto; border-radius: 12px; }
.models-image-text-content { display: grid; gap: 24px; min-width: 0; color: #858797; }
.models-content .models-image-text-heading { color: #fff; font: 600 26px/40px "Models Geist", sans-serif; }

@media (max-width: 760px) {
  .models-image-text { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
