@font-face {
  font-family: "DM Sans";
  src: url("/yoga/media/type/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/yoga/media/type/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  --yk-header-height: 75px;
  scroll-padding-top: calc(var(--yk-header-height) + var(--yk-local-offset, 0px));
}
body > .skip:focus { z-index: 110; }

.yk-header {
  color-scheme: light dark;
  --yk-surface: light-dark(#f8f6f0, #171614);
  --yk-ink: light-dark(#24221e, #f7efe4);
  --yk-line: light-dark(#dedad0, #413b35);
  --yk-accent: light-dark(#aa361f, #ff987e);
  --yk-hover: light-dark(#eee8dd, #302a24);
  --yk-control-line: light-dark(#d7d2c7, #5e554b);
  --yk-menu: light-dark(#fffcf7, #211e1b);
  --yk-shadow: light-dark(#28241628, #0007);
  position: sticky;
  z-index: 90;
  top: 0;
  box-sizing: border-box;
  border-bottom: 1px solid var(--yk-line);
  background: var(--yk-surface);
  color: var(--yk-ink);
  font: 1rem/1.3 "DM Sans", system-ui, sans-serif;
  transition: background-color .24s ease, box-shadow .24s ease;
}
.yk-header[data-scrolled] { box-shadow: 0 6px 18px var(--yk-shadow); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .yk-header[data-scrolled] {
    background-color: color-mix(in srgb, var(--yk-surface) 82%, transparent);
    -webkit-backdrop-filter: blur(9px) saturate(115%);
    backdrop-filter: blur(9px) saturate(115%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .yk-header { transition: none; }
}
.yk-header { color-scheme: light dark; }
:root[data-theme="light"] .yk-header { color-scheme: light; }
:root[data-theme="dark"] .yk-header { color-scheme: dark; }
.yk-header *, .yk-header *::before { box-sizing: border-box; }
.yk-header a { color: inherit; text-decoration: none; }
.yk-header :focus-visible { outline: 2px solid var(--yk-accent); outline-offset: 4px; }
.yk-header [hidden] { display: none !important; }
.yk-header-inner {
  width: min(1256px, calc(100% - 108px));
  min-height: calc(var(--yk-header-height) - 1px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.yk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.24rem;
  font-weight: 850;
  letter-spacing: -.065em;
  white-space: nowrap;
}
.yk-mark {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 9px;
  background: #ff785b;
}
.yk-mark::before {
  content: "";
  width: 19px;
  height: 20px;
  background: #201e1a;
  clip-path: polygon(0 0, 32% 0, 50% 35%, 68% 0, 100% 0, 66% 63%, 66% 100%, 34% 100%, 34% 63%);
}
.yk-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 37px);
  font-size: .91rem;
  font-weight: 690;
  white-space: nowrap;
}
.yk-nav > a:hover { color: var(--yk-accent); }
.yk-preferences { display: flex; align-items: center; gap: 8px; }
.yk-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--yk-control-line);
  border-radius: 999px;
}
.yk-language-short { display: none; }
.yk-header .theme { position: relative; }
.yk-header summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--yk-control-line);
  border-radius: 50%;
  list-style: none;
  cursor: pointer;
}
.yk-header summary::after { content: none; }
.yk-header summary::-webkit-details-marker { display: none; }
.yk-language:hover, .yk-header summary:hover, .yk-header [open] summary { background: var(--yk-hover); }
.yk-theme-icon {
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transform: rotate(-27deg);
}
.yk-header .theme-menu {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  min-width: 138px;
  padding: 5px;
  margin: 0;
  border: 1px solid var(--yk-line);
  border-radius: 13px;
  background: var(--yk-menu);
  box-shadow: 0 10px 24px var(--yk-shadow);
}
.yk-header legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.yk-header .theme-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.yk-header label:hover, .yk-header label:has(:checked) { background: var(--yk-hover); }
.yk-header input { margin: 0; accent-color: var(--yk-accent); }

@media (max-width: 1120px) { .yk-header-inner { width: calc(100% - 76px); } }
@media (max-width: 850px) { .yk-header-inner { width: calc(100% - 52px); } }
@media (max-width: 630px) { :root { --yk-header-height: 64px; } }
@media (max-width: 480px) {
  .yk-header-inner { width: calc(100% - 38px); }
  .yk-brand { font-size: 1.08rem; gap: 7px; }
  .yk-mark { width: 30px; border-radius: 8px; }
  .yk-mark::before { width: 16px; height: 17px; }
  .yk-nav { gap: 9px; font-size: .79rem; }
  .yk-language { padding: 4px 9px; min-height: 34px; }
  .yk-language-full { display: none; }
  .yk-language-short { display: inline; }
  .yk-preferences { gap: 5px; }
  .yk-header summary { width: 34px; height: 34px; }
}
@media (max-width: 355px) {
  .yk-header-inner { width: calc(100% - 26px); gap: 7px; }
  .yk-brand { font-size: 1rem; }
  .yk-nav { gap: 7px; font-size: .72rem; }
  .yk-language { padding-inline: 7px; }
  .yk-header summary { width: 32px; height: 32px; }
}

/* i18n-lang: 3-4 dil ddugmesi dar ekranda kisa kod */
@media (max-width: 720px) {
  .yk-language-full { display: none; }
  .yk-language-short { display: inline; }
  .yk-language { padding: 4px 10px; min-height: 34px; }
  .yk-preferences { gap: 5px; }
}

/* Cross-document view transitions between pages of the same origin. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .yk-header { view-transition-name: yk-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}

/* Keep fallback fonts visually the same size as DM Sans while it loads. */
html { font-size-adjust: from-font; }

/* Scrollbars follow the active theme. */
:root { scrollbar-color: #b5ad9f #f8f6f0; }
:root[data-theme="dark"] { scrollbar-color: #5e554b #171614; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { scrollbar-color: #5e554b #171614; } }

/* Higher contrast and forced-colors (Windows high contrast) support. */
@media (prefers-contrast: more) {
  .yk-header { --yk-line: currentColor; --yk-control-line: currentColor; }
  :focus-visible { outline-width: 3px; }
}
@media (forced-colors: active) {
  .yk-header { border-bottom: 1px solid CanvasText; box-shadow: none; }
  .yk-mark, .yk-theme-icon { forced-color-adjust: none; }
  :focus-visible { outline: 3px solid Highlight; }
}
