[hidden] {
  display: none !important;
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.a1-mobile-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-block: 8px 24px;
}

.a1-mobile-menu a {
  font-size: 14px;
  color: var(--primary);
  padding-block: 8px;
}

.a1-modal {
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: min(672px, calc(100% - 32px));
  max-height: 85dvh;
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
}

.a1-modal::backdrop {
  background: color-mix(in oklab, var(--foreground) 60%, transparent);
  backdrop-filter: blur(5px);
}

.a1-modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
}

.a1-modal-panel>h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  padding-right: 25px;
}

.a1-modal-panel>p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.a1-modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 25px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.a1-modal-close svg {
  width: 18px;
  height: 18px;
}

.a1-modal-open {
  overflow: hidden;
}

#global-search {
  border: 1px solid var(--input);
  border-radius: 4px;
  background: var(--card);
  padding: 12px;
  color: var(--foreground);
  width: 100%;
  font-size: 14px;
}

#global-search:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

#search-results {
  max-height: 52dvh;
  overflow-y: auto;
}

.a1-search-result {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.a1-search-result:hover {
  background: var(--accent);
}

.a1-search-result img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--muted);
  border-radius: 4px;
}

.a1-search-result strong {
  color: var(--primary);
  font-size: 13px;
  display: block;
}

.a1-search-result small {
  color: var(--muted-foreground);
  font-size: 11px;
  display: block;
  margin-top: 4px;
}

.a1-search-status,
.a1-empty {
  font-size: 13px;
  color: var(--muted-foreground);
  padding-block: 16px;
}

#model-filter:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.col-span-2 {
  grid-column: span 2;
}

.footer-fix {
  padding: 4rem 0 8rem 0;
}

@media(max-width: 1023px) {
  .footer-fix {
    padding: 2rem 0 11rem 0;
  }
}

@media(min-width:951px) {
  .a1-mobile-menu {
    display: none;
  }
}

@media(max-width: 760px) {
  .footer-fix {
    padding: 2rem 0 15rem 0;
  }
}

@media(max-width:500px) {
  .a1-modal-panel {
    padding: 22px
  }

  .a1-modal-panel>h2 {
    font-size: 18px
  }
}