/* Kinelio Core R5.2 — locale SEO, header identity, avatar geometry and icon system. */

.core-r5-2-header {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.core-r5-2-header .brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.core-r5-2-header .brand img {
  display: block;
  width: auto;
  height: 25px;
}

.desktop-header-search {
  min-width: 0;
  max-width: 460px;
  width: 100%;
}

.desktop-site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.desktop-language-switcher,
.desktop-account-menu,
.desktop-login-link {
  margin: 0;
  align-self: center;
}

.language-switcher select {
  min-height: 38px;
}

.desktop-language-switcher select {
  width: auto;
  min-width: 62px;
  padding-inline: 10px 28px;
}

.account-menu {
  position: relative;
}

.account-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 999px;
  padding: 3px 7px 3px 3px;
}

.account-menu > summary::-webkit-details-marker,
.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.account-menu > summary:focus-visible,
.mobile-menu > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.header-account-avatar {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  background: #f4f4f4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.header-account-avatar img {
  display: block;
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.header-account-avatar svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu-chevron {
  font-size: 13px;
  transform: translateY(-1px);
}

.account-menu-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.12);
}

.account-menu-panel > a,
.account-signout-form button {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  padding: 10px 11px;
  border-radius: 9px;
}

.account-menu-panel > a:hover,
.account-signout-form button:hover {
  background: #f5f5f5;
}

.account-menu-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px 11px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.account-menu-identity strong {
  font-size: 14px;
}

.account-menu-identity span {
  font-size: 12px;
  color: #6b6b6b;
}

.account-signout-form {
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.mobile-menu {
  display: none;
  position: relative;
  justify-self: end;
}

.mobile-menu > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 12px;
  background: #fff;
}

.hamburger-lines {
  width: 19px;
  display: grid;
  gap: 4px;
}

.hamburger-lines span {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-menu-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  right: 0;
  width: min(86vw, 340px);
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.14);
}

.mobile-account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.mobile-account-identity > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mobile-account-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-account-identity span {
  font-size: 12px;
  color: #6b6b6b;
}

.mobile-header-search {
  margin: 0 0 12px;
}

.mobile-header-search input {
  width: 100%;
}

.mobile-nav-links {
  display: grid;
  gap: 2px;
}

.mobile-nav-links a,
.mobile-signout-form button {
  display: block;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
}

.mobile-language-switcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.mobile-language-switcher label {
  font-size: 13px;
  font-weight: 650;
}

.mobile-language-switcher select {
  width: 100%;
}

.mobile-signout-form {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.directory-avatar {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex: 0 0 64px;
}

.directory-avatar img {
  display: block;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.product-strip article > .feature-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  align-self: flex-start;
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .core-r5-2-header {
    grid-template-columns: auto minmax(180px, 1fr) auto auto;
  }

  .desktop-site-nav {
    gap: 12px;
  }

  .desktop-site-nav a[href*="#how-it-works"] {
    display: none;
  }
}

@media (max-width: 900px) {
  .core-r5-2-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 66px;
  }

  .core-r5-2-header .brand img {
    height: 27px;
  }

  .desktop-header-search,
  .desktop-site-nav,
  .desktop-language-switcher,
  .desktop-account-menu,
  .desktop-login-link {
    display: none !important;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 560px) {
  .core-r5-2-header .brand img {
    height: 25px;
  }

  .mobile-menu-panel {
    width: min(92vw, 330px);
  }
}

.account-language-form {
  display: grid;
  gap: 6px;
  margin: 4px 0;
  padding: 9px 11px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.account-language-form label {
  font-size: 12px;
  font-weight: 650;
  color: #6b6b6b;
}

.account-language-form select {
  width: 100%;
  min-height: 36px;
}
