:root {
  --site-shell-background: #f4f6f8;
  --site-shell-surface: #ffffff;
  --site-shell-border: #d0d7de;
  --site-shell-text: #1f2328;
  --site-shell-muted: #57606a;
  --site-shell-accent: #0969da;
  --site-shell-accent-hover: #0757b5;
  --site-shell-content-width: 1200px;
  --site-shell-radius: 10px;
  --site-shell-shadow: 0 1px 2px rgba(31, 35, 40, 0.06);
  --site-shell-header-height: 66px;
}

html {
  scroll-padding-top: calc(var(--site-shell-header-height) + 16px);
}

body {
  display: flex !important;
  min-height: 100vh !important;
  box-sizing: border-box;
  flex-direction: column !important;
  padding-top: var(--site-shell-header-height) !important;
}

body > main {
  flex: 1 0 auto;
}

.site-shell-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-shell-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--site-shell-accent);
  border-radius: 6px;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.site-shell-skip-link:focus {
  transform: translateY(0);
}

.site-shell-header,
.site-shell-header * ,
.site-shell-footer,
.site-shell-footer * {
  box-sizing: border-box;
}

.site-shell-header {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--site-shell-text);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--site-shell-border);
  box-shadow: var(--site-shell-shadow);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: normal;
  text-align: left;
}

.site-shell-header-inner {
  display: grid;
  grid-template-columns: auto minmax(380px, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: 30px;
  width: min(var(--site-shell-content-width), calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
}

.site-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-shell-text);
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-shell-brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.site-shell-navigation {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
}

.site-shell-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--site-shell-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-shell-navigation a:hover,
.site-shell-navigation a:focus-visible,
.site-shell-navigation a[aria-current="page"] {
  color: var(--site-shell-accent);
}

.site-shell-navigation a[aria-current="page"]::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 3px;
  background: var(--site-shell-accent);
  border-radius: 3px 3px 0 0;
  content: "";
}

.site-shell-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--site-shell-border);
  border-radius: 7px;
}

.site-shell-search:focus-within {
  border-color: var(--site-shell-accent);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.site-shell-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  color: var(--site-shell-text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.site-shell-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--site-shell-text);
  background: #ffffff;
  border: 1px solid var(--site-shell-border);
  border-radius: 7px;
  cursor: pointer;
}

.site-shell-menu-icon,
.site-shell-menu-icon::before,
.site-shell-menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.site-shell-menu-icon {
  position: relative;
}

.site-shell-menu-icon::before {
  position: absolute;
  top: -6px;
}

.site-shell-menu-icon::after {
  position: absolute;
  top: 6px;
}

.site-shell-footer {
  display: block;
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  margin: 42px 0 0;
  padding: 0;
  color: var(--site-shell-muted);
  background: var(--site-shell-surface);
  border-top: 1px solid var(--site-shell-border);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: normal;
  text-align: left;
}

.site-shell-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  width: min(var(--site-shell-content-width), calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  padding: 20px 0;
}

.site-shell-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.site-shell-footer a {
  color: var(--site-shell-muted);
  text-decoration: none;
}

.site-shell-footer a:hover,
.site-shell-footer a:focus-visible {
  color: var(--site-shell-accent);
  text-decoration: underline;
}

.site-shell-footer p {
  margin: 0;
}

.site-shell-page-top {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 1001;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: var(--site-shell-accent);
  border: 1px solid var(--site-shell-accent);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(31, 35, 40, 0.2);
  font: 700 1.25rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}

.site-shell-page-top:hover,
.site-shell-page-top:focus-visible {
  background: var(--site-shell-accent-hover);
  border-color: var(--site-shell-accent-hover);
}

.site-shell-page-top:focus-visible {
  outline: 3px solid rgba(9, 105, 218, 0.25);
  outline-offset: 3px;
}

.site-shell-page-top[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-shell-header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .site-shell-menu-button {
    display: grid;
  }

  .site-shell-navigation {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--site-shell-border);
    border-radius: 8px;
  }

  .site-shell-navigation.is-open {
    display: flex;
  }

  .site-shell-navigation a {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 6px;
  }

  .site-shell-navigation a:hover,
  .site-shell-navigation a:focus-visible {
    background: #f6f8fa;
  }

  .site-shell-navigation a[aria-current="page"]::after {
    display: none;
  }

  .site-shell-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-shell-header-inner,
  .site-shell-footer-inner {
    width: min(100% - 24px, var(--site-shell-content-width));
  }

  .site-shell-footer-inner {
    min-height: 86px;
    padding: 10px 0;
    font-size: 0.78rem;
  }

  .site-shell-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .site-shell-footer p {
    display: none;
  }

  .site-shell-page-top {
    right: 14px;
    width: 42px;
    height: 42px;
  }
}
