/*
 * Figma re-home header on pages that also load application.css (guides, groups, contact, etc.).
 * Search uses the same rules via html.home-page; hero/search layout overrides stay in re_home_search.css.
 */
html.home-page #re-home-top .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.home-page #re-home-top .header-actions {
  gap: 24px;
  flex-shrink: 0;
}

@media (min-width: 821px) {
  html.home-page #re-home-top .header-inner .nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 32px;
    margin-left: 172px;
    min-width: 0;
  }

  html.home-page #re-home-top .nav a {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: "Inter", "Inter:Regular", system-ui, sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 26.4px !important;
    white-space: nowrap;
  }

  html.home-page #re-home-top .nav a[aria-current="page"] {
    background: transparent !important;
    color: #1c2421 !important;
    font-weight: 400 !important;
  }

  html.home-page #re-home-top .header-actions.re-home-header-actions {
    flex-wrap: nowrap;
    align-items: center;
  }
}

@media (max-width: 1200px) {
  html.home-page #re-home-top .header-inner .nav {
    margin-left: 40px;
    gap: 22px;
  }
}

@media (max-width: 1100px) {
  html.home-page #re-home-top .font-controls {
    display: none;
  }

  html.home-page #re-home-top .nav {
    gap: 18px;
  }
}

@media (max-width: 820px) {
  html.home-page #re-home-top .site-header {
    height: 82px;
  }

  html.home-page #re-home-top .header-inner {
    width: calc(100% - 32px);
    gap: 12px;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  html.home-page #re-home-top .brand {
    font-size: 20px;
    flex: 0 1 auto !important;
    min-width: 0;
  }

  html.home-page #re-home-top .brand img {
    width: 32px;
    height: 32px;
  }

  html.home-page #re-home-top .menu-button {
    display: block;
    flex-shrink: 0;
  }

  html.home-page #re-home-top .talk-button:not(.talk-button--ai-chat) {
    display: none;
  }

  html.home-page #re-home-top .talk-button--ai-chat {
    display: flex;
    flex-shrink: 0;
  }

  html.home-page #re-home-top .header-inner .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 14px;
    border: 1px solid #dcd8cf;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(31, 41, 38, 0.15);
    z-index: 30;
  }

  html.home-page #re-home-top .header-inner .nav.open {
    display: flex !important;
  }

  html.home-page #re-home-top .nav a {
    display: block !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 0 !important;
    text-align: left;
    white-space: normal;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    background: transparent !important;
    font-weight: 400 !important;
  }

  html.home-page #re-home-top .nav a[aria-current="page"] {
    color: #1c2421 !important;
  }

  html.home-page #re-home-top .header-actions {
    width: auto !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    gap: 12px;
    flex-wrap: nowrap;
  }
}
