:root {
  scrollbar-gutter: stable;
  --jo-scrollbar-horizontal-size: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(31, 47, 34, 0.06), transparent 60%),
    radial-gradient(1000px 500px at 90% 30%, rgba(31, 47, 34, 0.05), transparent 55%),
    #f2f0e9;
  color: #1f2f22;
}

.jo-surface {
  border: 1px solid rgba(31, 47, 34, 0.12);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  box-shadow:
    0 24px 60px rgba(31, 47, 34, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
}

.jo-soft-ring {
  box-shadow:
    0 18px 40px rgba(31, 47, 34, 0.08),
    0 0 0 1px rgba(31, 47, 34, 0.1) inset;
}

.jo-tab-badge-icon {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 15px;
}

.jo-h1 {
  letter-spacing: -0.03em;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: var(--jo-scrollbar-horizontal-size);
}

::-webkit-scrollbar-track {
  background: #f2f0e9;
}

::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1f2f22;
}

[x-cloak] {
  display: none !important;
}

/* Smooth fade for tabs */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover-arrow-move:hover i {
  transform: translateX(4px) translateY(-4px);
  transition: transform 0.2s ease;
}

/* Inline Logo Styles */
.inline-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.inline-logo-main {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  color: #1f2f22;
  line-height: 1;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.15));
}

.inline-logo-main .symbols {
  font-size: 8px;
  letter-spacing: -0.5px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  margin-right: 3px;
}

.inline-logo-main .letters {
  font-size: 20px;
  letter-spacing: -1.2px;
  display: flex;
  align-items: baseline;
  font-weight: 700;
}

.inline-logo-subtitle {
  font-size: 5px;
  font-weight: 500;
  color: #1f2f22;
  letter-spacing: 0.4px;
  opacity: 0.8;
  margin-top: 1px;
  text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.jo-footer-logo {
  transform: scale(0.8);
  transform-origin: left center;
}

.jo-nav-link {
  position: relative;
  display: inline-block;
  color: rgba(31, 47, 34, 0.72);
  text-decoration: none;
  transition: color 160ms ease;
}

.jo-nav-link:hover {
  color: #1f2f22;
}

.jo-nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  bottom: -2px;
  background-color: #1f2f22;
  transition: width 220ms ease;
}

.jo-nav-link:hover::after {
  width: 100%;
}

.jo-nav-link[aria-current='page'] {
  color: #1f2f22;
}

.jo-nav-link[aria-current='page']::after {
  width: 100%;
}

.jo-nav-link:focus-visible {
  outline: 2px solid rgba(31, 47, 34, 0.22);
  outline-offset: 3px;
}

/* Nav mini search (expand on click) */
#nav-key-search {
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

#nav-key-search .nav-search-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: absolute;
  top: 50%;
  right: calc(100% + 0.5rem);
  transform: translateY(-50%) scale(0.98);
  z-index: 20;
  padding: 0.25rem 0.375rem 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(31, 47, 34, 0.12);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(31, 47, 34, 0.07);
  flex: 0 0 auto;
  max-width: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    width 320ms cubic-bezier(0.16, 1, 0.3, 1),
    max-width 320ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

#nav-key-search.is-expanded .nav-search-field {
  max-width: min(16rem, 65vw);
  width: min(16rem, 65vw);
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

#nav-key-search.is-expanded .nav-search-field:hover {
  border-color: rgba(31, 47, 34, 0.18);
}

#nav-key-search.is-expanded .nav-search-field:focus-within {
  border-color: rgba(31, 47, 34, 0.22);
  box-shadow: 0 6px 18px rgba(31, 47, 34, 0.05);
}

