/* One navigation component for all AgentDoG project editions. */
.family-header {
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  z-index: 1100;
  background: rgba(11, 12, 16, .85);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}
.family-header *, .family-header *::before, .family-header *::after { box-sizing: border-box; }
.family-nav { height: 100%; }
.family-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.family-version { position: relative; flex: 0 0 auto; }
.family-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.family-brand::-webkit-details-marker { display: none; }
.family-brand > span {
  background: linear-gradient(135deg, #6ae3ff, #9f8bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.family-brand svg { width: 12px; height: 12px; fill: none; stroke: #a0a0a0; stroke-width: 1.5; transition: transform .2s; }
.family-version[open] .family-brand svg { transform: rotate(180deg); }
.family-version-menu, .family-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1110;
  width: 218px;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #101219;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  list-style: none;
}
.family-version-menu li, .family-submenu li { margin: 0; padding: 0; }
.family-version-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 5px;
  color: #b9bcc8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.family-version-menu a:hover, .family-version-menu a[aria-current="page"] { background: rgba(106, 227, 255, .08); color: #6ae3ff; }
.family-edition { color: #8e93a5; font-size: 12px; }
.family-chapters { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.family-chapters > li { margin: 0; padding: 0; }
.family-chapters a {
  color: #a0a0a0;
  font-size: 14.4px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.family-chapters a:hover, .family-chapters a[aria-current="location"] { color: #e6e6e6; }
.family-chapter-dropdown { position: relative; }
.family-submenu { display: none; width: max-content; min-width: 160px; }
.family-submenu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.family-submenu a { display: block; padding: 8px 12px; }
.family-chapter-dropdown:hover .family-submenu, .family-chapter-dropdown:focus-within .family-submenu { display: block; }
.family-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.family-header .family-language {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  color: #e6e6e6;
  font-family: inherit;
  font-size: 13.6px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
}
.family-header .family-language:hover { background: rgba(106, 227, 255, .1); color: #6ae3ff; border-color: rgba(106, 227, 255, .4); }
.family-menu-toggle { display: none; }
.family-header :focus-visible { outline: 2px solid #6ae3ff; outline-offset: 4px; }
@media (max-width: 1099px) {
  .family-nav-inner { gap: 16px; }
  .family-chapters {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: #0e1016;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .family-chapters.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .family-chapters > li > a { display: block; padding: 10px 0; }
  .family-submenu { display: block; position: static; margin: 0 0 6px; padding: 0 0 0 14px; width: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .family-submenu a { padding: 7px 0; font-size: 13px; }
  .family-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
  }
  .family-menu-toggle span { width: 17px; height: 1.5px; background: #b9bcc8; }
}
@media (max-width: 480px) { .family-nav-inner { padding: 0 20px; } }
@media (prefers-reduced-motion: reduce) { .family-header * { transition: none; } }

/* The first section after the hero uses the same layout in every edition. */
.sota-highlight {
  padding: 60px 0;
  background: var(--bg-primary, var(--bg));
  line-height: 1.6;
}
.sota-highlight > .container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.sota-highlight .section-title {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: inherit;
  letter-spacing: normal;
  text-align: center;
  background: var(--accent-gradient, var(--gradient));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sota-highlight .section-subtitle {
  max-width: 700px;
  margin: 0 auto 48px;
  color: var(--text-secondary, var(--muted));
  font-size: 1.1rem;
  text-align: center;
}
.sota-images-vertical {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 32px auto 0;
}
.sota-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
}
.sota-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Legacy performance cards must shrink before their tables scroll on narrow screens. */
.family-header:is([data-family-version="1.0"], [data-family-version="1.5"]) ~ section .performance-content {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 1100px) {
  .family-header[data-family-version="1.5"] ~ section .intro-features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px) {
  .family-header[data-family-version="1.5"] ~ section .intro-features {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .family-header[data-family-version="1.0"] ~ section .model-card {
    flex-wrap: wrap;
  }
  .family-header[data-family-version="1.0"] ~ section .model-info h4 {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .family-header[data-family-version="1.0"] ~ section .model-links {
    flex-wrap: wrap;
  }
}
